]> code.delx.au - spectrwm/commitdiff
Replace map_window_raised with map_window function.
authorReginald Kennedy <rk@rejii.com>
Sun, 19 Aug 2012 23:51:00 +0000 (07:51 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 20 Aug 2012 18:37:34 +0000 (02:37 +0800)
Rename get_iconic to get_swm_iconic

Add new xcb_timestamp_t parameter to client_msg.

Add debug output to client_msg.

Remove unfocus_all since no longer needed.

Fix focus_win to correctly set focus on window.

Time must be specified in ClientMessage WM_TAKE_FOCUS.

Track window mapped state.

Change focus function to only set workspace focus; need to call
focus_win separately.

Fix focus_win function to correctly set window focus.

Add FocusOut debug output.

Add debug message to client_msg.

Add timestamp parameter to client_msg.
When sending the client message WM_TAKE_FOCUS, the time must not be
XCB_TIME_CURRENT.

Check window state before unmapping.

Track X11 timestamps for use in focus_win.

Handle iconify on property notify.

spectrwm.c

index 75c7a6cc7ddbe78b597bf9c71ceac86a3e2df770..71c7d9c46edd3cc2330828e450c1d007318bfb8a 100644 (file)
@@ -2882,6 +2882,10 @@ switchws(struct swm_region *r, union arg *args)
        if (!new_ws->focus)
                bar_update();
 
+       /* make sure bar gets updated if ws is empty */
+       if (!new_ws->focus)
+               bar_update();
+
        focus_flush();
 
        DNPRINTF(SWM_D_WS, "switchws: done.\n");
@@ -7550,6 +7554,7 @@ void
 propertynotify(xcb_property_notify_event_t *e)
 {
        struct ws_win           *win;
+       union arg a;
 #ifdef SWM_DEBUG
        char                    *name;