diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2009-03-28 17:37:56 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2009-03-28 17:37:56 +0000 |
commit | 2a86f6c5988c86a11ea1da09e64c036807751bad (patch) | |
tree | 2d37eb4160d29ecfebaaf57f7fdb9ad8571060fe /src/netwm.c | |
parent | fd1b2125d8b4d3bb55d75be438817f219e9e3ef0 (diff) | |
download | xfwm4-2a86f6c5988c86a11ea1da09e64c036807751bad.tar.gz |
* src/netwm.c: Keep window layer when status is above, below or
fullscreen (Bug #5030)
(Old svn revision: 29688)
Diffstat (limited to 'src/netwm.c')
-rw-r--r-- | src/netwm.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/netwm.c b/src/netwm.c index dc15a1bdd..1f127ae1b 100644 --- a/src/netwm.c +++ b/src/netwm.c @@ -1309,11 +1309,14 @@ clientWindowType (Client * c) } FLAG_UNSET (c->xfwm_flags, XFWM_FLAG_HAS_HIDE); } - if ((old_type != c->type) || (c->initial_layer != c->win_layer)) + if (!FLAG_TEST (c->flags, CLIENT_FLAG_ABOVE|CLIENT_FLAG_BELOW|CLIENT_FLAG_FULLSCREEN)) { - TRACE ("setting layer %i", c->initial_layer); - clientSetLayer (c, c->initial_layer); - clientSetNetState (c); + if ((old_type != c->type) || (c->initial_layer != c->win_layer)) + { + TRACE ("setting layer %i", c->initial_layer); + clientSetLayer (c, c->initial_layer); + clientSetNetState (c); + } } } @@ -1468,7 +1471,7 @@ clientGetUserTime (Client * c) if (getNetWMUserTime (display_info, c->user_time_win, &c->user_time)) { guint32 last_user_time; - + last_user_time = myDisplayGetLastUserTime (display_info); if (c->user_time && TIMESTAMP_IS_BEFORE(last_user_time, c->user_time)) { |