Set up _NET_WM_SUPPORTED and window manager name again

This fixes MPlayer fullscreen mode
This commit is contained in:
Michael Stapelberg 2010-05-15 00:28:10 +02:00
parent 2d52ecf071
commit be357a1aaa

View File

@ -257,6 +257,11 @@ int main(int argc, char *argv[]) {
/* Watch WM_NAME (title of the window encoded in COMPOUND_TEXT) */ /* Watch WM_NAME (title of the window encoded in COMPOUND_TEXT) */
xcb_watch_wm_name(&prophs, 128, handle_windowname_change_legacy, NULL); 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 managers 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); keysyms = xcb_key_symbols_alloc(conn);