server: Remove no longer needed CONSOLE_RENDERER_ACTIVE_SB_EVENT events.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-07-29 12:38:04 +02:00 committed by Alexandre Julliard
parent 1f5a45e63e
commit c37c9bf65a
3 changed files with 0 additions and 23 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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;