aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-08 13:42:37 -0400
committerDavid Robillard <d@drobilla.net>2021-05-08 14:29:42 -0400
commitfcce346e6787875e6526efea89e74055e447f889 (patch)
tree3fa0589c678e1142bfa9a42ef939ae43c92d0e78 /src/x11.h
parent17ad5fd72bd51c5324b8e52e1f55020d5a97944a (diff)
downloadpugl-fcce346e6787875e6526efea89e74055e447f889.tar.gz
pugl-fcce346e6787875e6526efea89e74055e447f889.tar.bz2
pugl-fcce346e6787875e6526efea89e74055e447f889.zip
Send unmap/map events when the view is minimized/restored
X11 Window managers set WM_STATE to notify about minimization, often without sending core X visibility events (which seems odd to me, but that's what Gnome does anyway). So, implement this protocol and send map/unmap events to the view, and adjust the Windows implementation to do the same for consistency across all platforms.
Diffstat (limited to 'src/x11.h')
-rw-r--r--src/x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x11.h b/src/x11.h
index 313b4f5..daf177a 100644
--- a/src/x11.h
+++ b/src/x11.h
@@ -38,6 +38,7 @@ typedef struct {
Atom NET_WM_NAME;
Atom NET_WM_STATE;
Atom NET_WM_STATE_DEMANDS_ATTENTION;
+ Atom NET_WM_STATE_HIDDEN;
} PuglX11Atoms;
typedef struct {