From be357a1aaa1542f83f57af01c7c83b01e339e547 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 15 May 2010 00:28:10 +0200 Subject: [PATCH] Set up _NET_WM_SUPPORTED and window manager name again This fixes MPlayer fullscreen mode --- src/nc.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5