mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 09:41:15 +00:00
(XEGL context/Xvideo) Add it to these video drivers/ context
drivers too
This commit is contained in:
parent
179ad94c6f
commit
dd0d81eba8
@ -487,7 +487,7 @@ static void *xv_init(const video_info_t *video,
|
||||
attributes.colormap = xv->colormap;
|
||||
attributes.border_pixel = 0;
|
||||
attributes.event_mask = StructureNotifyMask | KeyPressMask |
|
||||
KeyReleaseMask | DestroyNotify | ClientMessage;
|
||||
KeyReleaseMask | ButtonReleaseMask | ButtonPressMask | DestroyNotify | ClientMessage;
|
||||
|
||||
width = video->fullscreen ? ((video->width == 0) ? geom->base_width : video->width) : video->width;
|
||||
height = video->fullscreen ? ((video->height == 0) ? geom->base_height : video->height) : video->height;
|
||||
@ -804,6 +804,11 @@ static bool xv_alive(void *data)
|
||||
xv->focus = false;
|
||||
break;
|
||||
|
||||
case ButtonPress:
|
||||
break;
|
||||
case ButtonRelease:
|
||||
break;
|
||||
|
||||
case KeyPress:
|
||||
case KeyRelease:
|
||||
x11_handle_key_event(&event, xv->xic, filter);
|
||||
|
@ -183,6 +183,12 @@ static void gfx_ctx_xegl_check_window(void *data, bool *quit,
|
||||
g_has_focus = false;
|
||||
break;
|
||||
|
||||
case ButtonPress:
|
||||
break;
|
||||
|
||||
case ButtonRelease:
|
||||
break;
|
||||
|
||||
case KeyPress:
|
||||
case KeyRelease:
|
||||
if (event.xkey.window == g_win)
|
||||
@ -469,7 +475,7 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
|
||||
|
||||
swa.colormap = g_cmap = XCreateColormap(g_dpy, RootWindow(g_dpy, vi->screen),
|
||||
vi->visual, AllocNone);
|
||||
swa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask;
|
||||
swa.event_mask = StructureNotifyMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | KeyReleaseMask;
|
||||
swa.override_redirect = fullscreen ? True : False;
|
||||
|
||||
if (fullscreen && !windowed_full)
|
||||
|
Loading…
Reference in New Issue
Block a user