X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=74b8e71db4d8c42f553dadab2427cf9b0e9bebba;hb=141c249b8cd3b94a722acc8c0225b3cbf83e5042;hp=a54b2b564074f771ba2bacae86b61045413ac5fe;hpb=bfb800c032e1dd50f5d1c37d1ce8ac9239947b01;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index a54b2b56..74b8e71d 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -34,6 +34,7 @@ #include "popup.h" #include "extensions.h" #include "render/render.h" +#include "gettext.h" #include #ifdef HAVE_UNISTD_H @@ -79,7 +80,7 @@ static gboolean replace_wm() current_wm_sn_owner = None; if (current_wm_sn_owner) { if (!ob_replace_wm) { - g_warning("A window manager is already running on screen %d", + g_message(_("A window manager is already running on screen %d"), ob_screen); return FALSE; } @@ -116,7 +117,7 @@ static gboolean replace_wm() timestamp); if (XGetSelectionOwner(ob_display, wm_sn_atom) != screen_support_win) { - g_warning("Could not acquire window manager selection on screen %d", + g_message(_("Could not acquire window manager selection on screen %d"), ob_screen); return FALSE; } @@ -137,8 +138,8 @@ static gboolean replace_wm() } if (wait >= timeout) { - g_warning("Timeout expired while waiting for the current WM to die " - "on screen %d", ob_screen); + g_message(_("Timeout expired while waiting for the current WM to die" + " on screen %d"), ob_screen); return FALSE; } } @@ -179,7 +180,7 @@ gboolean screen_annex() ROOT_EVENTMASK); xerror_set_ignore(FALSE); if (xerror_occured) { - g_warning("A window manager is already running on screen %d", + g_message(_("A window manager is already running on screen %d"), ob_screen); XDestroyWindow(ob_display, screen_support_win); @@ -460,10 +461,14 @@ void screen_set_desktop(guint num) } } - /* reduce flicker by hiliting now rather than waiting for the server - FocusIn event */ - if ((c = focus_fallback_target(TRUE, focus_client))) + /* have to try focus here because when you leave an empty desktop + there is no focus out to watch for */ + if ((c = focus_fallback_target(TRUE, focus_client))) { + /* reduce flicker by hiliting now rather than waiting for the server + FocusIn event */ frame_adjust_focus(c->frame, TRUE); + client_focus(c); + } event_ignore_queued_enters(); }