diff options
author | Sven Gothel <[email protected]> | 2015-10-09 01:54:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-10-09 01:54:32 +0200 |
commit | e418a665756af52fe2ca691ca220644e9b27c22c (patch) | |
tree | 5aad1e3803b5cbf177b591912985d992afec6894 /src/newt/native/X11Common.h | |
parent | dca5d36370ec5eb44998bae593880e3b10cc9a4e (diff) |
Bug 1249 - NEWT X11: setVisible(*) _NET_WM_STATE_HIDDEN update not received at ConfigureNotify event (2)
On gnome shell WM, sometimes KDE WM,
it has been observed that the _NET_WM_STATE_HIDDEN update (visible or invisible)
is not received at ConfigureNotify event.
Turns out the state is finally updated at FocusOut!
This change tests _NET_WM_STATE_HIDDEN visibility hint
for mapped window also for FocusIn and FocusOut events,
besides the ConfigureNotify event.
Further more, NormalState to restore a hidden but mapped
window did not work, so it is no more being sent.
We limit us here to _NET_ACTIVE_WINDOW.
2 unit tests are prepared to test this issue:
- TestGLWindows00NEWT
- TestParenting01NEWT
Diffstat (limited to 'src/newt/native/X11Common.h')
-rw-r--r-- | src/newt/native/X11Common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newt/native/X11Common.h b/src/newt/native/X11Common.h index e46996441..f9254ab76 100644 --- a/src/newt/native/X11Common.h +++ b/src/newt/native/X11Common.h @@ -83,6 +83,7 @@ typedef struct { uint32_t lastDesktop; Bool maxHorz; Bool maxVert; + /** flag whether window is mapped */ Bool isMapped; } JavaWindow; @@ -142,6 +143,8 @@ Bool NewtWindows_updateMaximized(Display *dpy, JavaWindow * w, uint32_t netWMSta #define _WM_CHANGE_STATE_IDX 23 #define _MOTIF_WM_HINTS_IDX 24 +void NewtWindows_setUrgency(Display *dpy, Window window, Bool enable); +void NewtWindows_sendNET_WM_STATE(Display *dpy, Window root, JavaWindow *w, int prop1Idx, int prop2Idx, Bool enable); uint32_t NewtWindows_getNET_WM_STATE(Display *dpy, JavaWindow *w); #endif /* _X11COMMON_H_ */ |