From 3735bdc0e4d3ef7c4a1555f0860c152cf69da7b2 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Mon, 28 Mar 2011 16:07:03 +0200 Subject: Always raise window when fixing it on all workspaces. When moving windows between workspaces, this makes us sure we can find it on the workspace we're going to. Thanks to Simon Friis for noticing. --- NEWS | 6 ++++++ mcwm.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/NEWS b/NEWS index 591be72..d75e077 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,12 @@ User visible changes +2011-03-28 + + * Always raise window when fixing it on all workspaces. When moving + windows between workspaces, this makes us sure we can find it on + the workspace we're going to. Thanks to Simon Friis for noticing. + 2011-03-26 * You don't have to tell mcwm what keycode generates the MODKEY diff --git a/mcwm.c b/mcwm.c index 0f0dc8e..d717d62 100644 --- a/mcwm.c +++ b/mcwm.c @@ -731,6 +731,13 @@ void fixwindow(struct client *client, bool setcolour) } else { + /* + * First raise the window. If we're going to another desktop + * we don't want this fixed window to be occluded behind + * something else. + */ + raisewindow(client->id); + client->fixed = true; setwmdesktop(client->id, NET_WM_FIXED); -- cgit v1.2.3