diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-12-02 09:27:11 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-12-02 09:27:11 +0100 |
commit | 2e70dc77c26041a27d24cd10ea7421c13b3edeae (patch) | |
tree | 7a45ed0462f0137e5d4af98590fd96312e80a30d /put.c | |
parent | 651168d6ba54395fe0fc591952edc8c7e0d7aa30 (diff) | |
download | put-2e70dc77c26041a27d24cd10ea7421c13b3edeae.tar.gz put-2e70dc77c26041a27d24cd10ea7421c13b3edeae.tar.bz2 |
Never move windows without move action and don't keep screen grab around
when bailing out.
Diffstat (limited to 'put.c')
-rw-r--r-- | put.c | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -326,6 +326,21 @@ putInitiateCommon (CompDisplay *d, PUT_SCREEN (s); + /* we don't want to do anything with override redirect windows */ + if (w->attrib.override_redirect) + return FALSE; + + /* we don't want to be moving the desktop, docks, + or fullscreen windows */ + if (w->type & (CompWindowTypeDesktopMask | + CompWindowTypeDockMask | + CompWindowTypeFullscreenMask)) + return FALSE; + + /* don't move windows without move action */ + if (!(w->actions & CompWindowActionMoveMask)) + return FALSE; + if (!ps->grabIndex) { /* this will keep put from working while something @@ -349,19 +364,6 @@ putInitiateCommon (CompDisplay *d, px = getIntOptionNamed (option, nOption, "x", 0); py = getIntOptionNamed (option, nOption, "y", 0); - /* we don't want to do anything with override redirect windows */ - if (w->attrib.override_redirect) - return FALSE; - - /* we don't want to be moving the desktop, docks, - or fullscreen windows */ - if (w->type & CompWindowTypeDesktopMask || - w->type & CompWindowTypeDockMask || - w->type & CompWindowTypeFullscreenMask) - { - return FALSE; - } - /* get the Xinerama head from the options list */ head = getIntOptionNamed(option, nOption, "head", -1); /* no head in options list so we use the current head */ |