MainNoGUI: Move a majority of the event handling from the GLX backend
The only reason the GLX backend handled this at all was because MainNoGUI didn't make its own window before. This is unused in DolphinWX builds.
This commit is contained in:
1 parent
0dd7f6f5ea
commit
d6f4f4df42
2 files changed
+8
-10
No files matched your search
@@ -148,6 +148,9 @@ class PlatformX11 : public Platform
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight,
|
||||
0, 0, BlackPixel(dpy, 0));
|
||||
XSelectInput(dpy, win, KeyPressMask | FocusChangeMask);
|
||||
Atom wmProtocols[1];
|
||||
wmProtocols[0] = XInternAtom(dpy, "WM_DELETE_WINDOW", True);
|
||||
XSetWMProtocols(dpy, win, wmProtocols, 1);
|
||||
XMapRaised(dpy, win);
|
||||
XFlush(dpy);
|
||||
windowHandle = (void *) win;
|
||||
@@ -250,6 +253,10 @@ class PlatformX11 : public Platform
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
||||
XUndefineCursor(dpy, win);
|
||||
break;
|
||||
case ClientMessage:
|
||||
if ((unsigned long) event.xclient.data.l[0] == XInternAtom(dpy, "WM_DELETE_WINDOW", False))
|
||||
running = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!fullscreen)
|
||||
|
||||
Reference in new issue
Block a user