if the current SN_WM owner is our window (can this happen?) then ignore it
This commit is contained in:
parent
e03c0891bd
commit
34446063fa
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue