if the current SN_WM owner is our window (can this happen?) then ignore it

This commit is contained in:
Dana Jansens 2003-10-11 03:43:18 +00:00
parent e03c0891bd
commit 34446063fa

View file

@ -74,6 +74,8 @@ static gboolean replace_wm()
g_free(wm_sn); g_free(wm_sn);
current_wm_sn_owner = XGetSelectionOwner(ob_display, wm_sn_atom); 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 (current_wm_sn_owner) {
if (!ob_replace_wm) { if (!ob_replace_wm) {
g_warning("A window manager is already running on screen %d", g_warning("A window manager is already running on screen %d",