Commit c37c9bf6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Remove no longer needed CONSOLE_RENDERER_ACTIVE_SB_EVENT events.

parent 1f5a45e6
......@@ -206,7 +206,6 @@ enum condrv_renderer_event_type
{
CONSOLE_RENDERER_NONE_EVENT,
CONSOLE_RENDERER_TITLE_EVENT,
CONSOLE_RENDERER_ACTIVE_SB_EVENT,
CONSOLE_RENDERER_SB_RESIZE_EVENT,
CONSOLE_RENDERER_UPDATE_EVENT,
CONSOLE_RENDERER_CURSOR_POS_EVENT,
......
......@@ -199,7 +199,6 @@ void WINECON_GrabChanges(struct inner_data* data)
struct condrv_renderer_event *evts = data->events;
int i, ev_found;
DWORD num;
HANDLE h;
if (data->in_grab_changes) return;
......@@ -267,23 +266,6 @@ void WINECON_GrabChanges(struct inner_data* data)
WINE_TRACE("%u/%u: title()\n", i+1, num);
data->fnSetTitle(data);
break;
case CONSOLE_RENDERER_ACTIVE_SB_EVENT:
SERVER_START_REQ( open_console )
{
req->from = wine_server_obj_handle( data->hConIn );
req->access = GENERIC_READ | GENERIC_WRITE;
req->attributes = 0;
req->share = FILE_SHARE_READ | FILE_SHARE_WRITE;
h = wine_server_call_err( req ) ? 0 : wine_server_ptr_handle(reply->handle);
}
SERVER_END_REQ;
WINE_TRACE("%u/%u: active(%p)\n", i+1, num, h);
if (h)
{
CloseHandle(data->hConOut);
data->hConOut = h;
}
break;
case CONSOLE_RENDERER_SB_RESIZE_EVENT:
if (data->curcfg.sb_width != evts[i].u.resize.width ||
data->curcfg.sb_height != evts[i].u.resize.height)
......
......@@ -496,10 +496,6 @@ static void generate_sb_initial_events( struct console_input *console_input )
struct screen_buffer *screen_buffer = console_input->active;
struct condrv_renderer_event evt;
evt.event = CONSOLE_RENDERER_ACTIVE_SB_EVENT;
memset(&evt.u, 0, sizeof(evt.u));
console_input_events_append( console_input, &evt );
evt.event = CONSOLE_RENDERER_SB_RESIZE_EVENT;
evt.u.resize.width = screen_buffer->width;
evt.u.resize.height = screen_buffer->height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment