if the current SN_WM owner is our window (can this happen?) then ignore it
authorDana Jansens <danakj@orodu.net>
Sat, 11 Oct 2003 03:43:18 +0000 (03:43 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 11 Oct 2003 03:43:18 +0000 (03:43 +0000)
openbox/screen.c

index d2fe9c5..05c292a 100644 (file)
@@ -74,6 +74,8 @@ static gboolean replace_wm()
     g_free(wm_sn);
 
     current_wm_sn_owner = XGetSelectionOwner(ob_display, wm_sn_atom);
+    if (current_wm_sn_owner == screen_support_win)
+        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",