mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +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.colormap = xv->colormap;
|
||||||
attributes.border_pixel = 0;
|
attributes.border_pixel = 0;
|
||||||
attributes.event_mask = StructureNotifyMask | KeyPressMask |
|
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;
|
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;
|
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;
|
xv->focus = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ButtonPress:
|
||||||
|
break;
|
||||||
|
case ButtonRelease:
|
||||||
|
break;
|
||||||
|
|
||||||
case KeyPress:
|
case KeyPress:
|
||||||
case KeyRelease:
|
case KeyRelease:
|
||||||
x11_handle_key_event(&event, xv->xic, filter);
|
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;
|
g_has_focus = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ButtonPress:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ButtonRelease:
|
||||||
|
break;
|
||||||
|
|
||||||
case KeyPress:
|
case KeyPress:
|
||||||
case KeyRelease:
|
case KeyRelease:
|
||||||
if (event.xkey.window == g_win)
|
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),
|
swa.colormap = g_cmap = XCreateColormap(g_dpy, RootWindow(g_dpy, vi->screen),
|
||||||
vi->visual, AllocNone);
|
vi->visual, AllocNone);
|
||||||
swa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask;
|
swa.event_mask = StructureNotifyMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | KeyReleaseMask;
|
||||||
swa.override_redirect = fullscreen ? True : False;
|
swa.override_redirect = fullscreen ? True : False;
|
||||||
|
|
||||||
if (fullscreen && !windowed_full)
|
if (fullscreen && !windowed_full)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user