]> git.sur5r.net Git - i3/i3/commitdiff
Set up _NET_WM_SUPPORTED and window manager name again
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 14 May 2010 22:28:10 +0000 (00:28 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 14 May 2010 22:28:10 +0000 (00:28 +0200)
This fixes MPlayer fullscreen mode

src/nc.c

index cb3569a0cd5994d50440f86c798a5dbcfb79cc08..ac8590afa3068111e08df151d7b2979827904616 100644 (file)
--- a/src/nc.c
+++ b/src/nc.c
@@ -257,6 +257,11 @@ int main(int argc, char *argv[]) {
     /* Watch WM_NAME (title of the window encoded in COMPOUND_TEXT) */
     xcb_watch_wm_name(&prophs, 128, handle_windowname_change_legacy, NULL);
 
+    /* Set up the atoms we support */
+    xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTED], ATOM, 32, 7, atoms);
+    /* Set up the window manager’s name */
+    xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTING_WM_CHECK], WINDOW, 32, 1, &root);
+    xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_WM_NAME], atoms[UTF8_STRING], 8, strlen("i3"), "i3");
 
     keysyms = xcb_key_symbols_alloc(conn);