mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 10:22:34 +01:00
Add support for _NET_WM_FULLSCREEN_MONITORS
This patch adds the _NET_WM_FULLSCREEN_MONITORS hint as defined in EWMH which is based on Xinerama. It's allowing a window to be displayed fullscreen on multiple monitors. Issue mentioned at https://github.com/window-maker/wmaker/issues/8 Specs at https://specifications.freedesktop.org/wm-spec/1.5/ar01s06.html#idm45763309187776 GTK test program used https://bugzilla.gnome.org/show_bug.cgi?id=414476
This commit is contained in:
committed by
Carlos R. Mafra
parent
ac75047aef
commit
4d658341d2
@@ -688,6 +688,9 @@ WWindow *wManageWindow(WScreen *scr, Window window)
|
||||
XChangeWindowAttributes(dpy, window, CWEventMask | CWDontPropagate | CWSaveUnder, &attribs);
|
||||
XSetWindowBorderWidth(dpy, window, 0);
|
||||
|
||||
if (wwin->wm_class != NULL && strcmp(wwin->wm_class, "DockApp") != 0)
|
||||
wwin->flags.fullscreen_monitors[0] = -1;
|
||||
|
||||
/* get hints from GNUstep app */
|
||||
if (wwin->wm_class != NULL && strcmp(wwin->wm_class, "GNUstep") == 0)
|
||||
wwin->flags.is_gnustep = 1;
|
||||
|
||||
Reference in New Issue
Block a user