From: Michael Stapelberg Date: Fri, 14 May 2010 22:28:10 +0000 (+0200) Subject: Set up _NET_WM_SUPPORTED and window manager name again X-Git-Tag: tree-pr1~213 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be357a1aaa1542f83f57af01c7c83b01e339e547;p=i3%2Fi3 Set up _NET_WM_SUPPORTED and window manager name again This fixes MPlayer fullscreen mode --- diff --git a/src/nc.c b/src/nc.c index cb3569a0..ac8590af 100644 --- 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);