* Headers/x11/XGGeneric.h

* Source/x11/XGServerWindow.m: Correct name for atom
        net_wm_state_modal_atom. Use this atom to try to set the sate
        for dialog windows to modal.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@38417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-03-21 18:53:46 +00:00
parent 7b89c2c3ba
commit 59723d8e42
3 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2015-03-21 Fred Kiefer <FredKiefer@gmx.de>
* Headers/x11/XGGeneric.h
* Source/x11/XGServerWindow.m: Correct name for atom
net_wm_state_modal_atom. Use this atom to try to set the sate for
dialog windows to modal.
2015-02-27 Germán Arias <germanandre@gmx.es>
* Source/cairo/CairoContext.m (-flushGraphics:):

View file

@ -60,7 +60,7 @@ typedef struct {
typedef struct {
Atom net_wm_state_atom;
Atom new_wm_state_modal_atom;
Atom net_wm_state_modal_atom;
Atom net_wm_state_sticky_atom;
Atom net_wm_state_maximized_vert_atom;
Atom net_wm_state_maximized_horz_atom;

View file

@ -1308,7 +1308,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
// Window state
generic.netstates.net_wm_state_atom =
XInternAtom(dpy, "_NET_WM_STATE", False);
generic.netstates.new_wm_state_modal_atom =
generic.netstates.net_wm_state_modal_atom =
XInternAtom(dpy, "_NET_WM_STATE_MODAL", False);
generic.netstates.net_wm_state_sticky_atom =
XInternAtom(dpy, "_NET_WM_STATE_STICKY", False);
@ -3115,6 +3115,17 @@ static BOOL didCreatePixmaps;
}
}
}
if (window->win_attrs.window_level == NSModalPanelWindowLevel)
{
[self _sendRoot: window->root
type: generic.netstates.net_wm_state_atom
window: window->ident
data0: _NET_WM_STATE_ADD
data1: generic.netstates.net_wm_state_modal_atom
data2: 0
data3: 1];
}
}
XFlush(dpy);
}