Merge lp:~3v1n0/compiz/move-selective-grab into lp:compiz/0.9.12

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: 3936
Merged at revision: 3984
Proposed branch: lp:~3v1n0/compiz/move-selective-grab
Merge into: lp:compiz/0.9.12
Prerequisite: lp:~3v1n0/compiz/push-grab-types
Diff against target: 30 lines (+8/-3)
1 file modified
plugins/move/src/move.cpp (+8/-3)
To merge this branch: bzr merge lp:~3v1n0/compiz/move-selective-grab
Reviewer Review Type Date Requested Status
MC Return Approve
Andrea Azzarone Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+271586@code.launchpad.net

Commit message

Move: remember the type of movement and use the proper grabbing for it

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~3v1n0/compiz/move-selective-grab updated
3933. By Marco Trevisan (Treviño)

Merge with parent lp:~3v1n0/compiz/push-grab-types

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~3v1n0/compiz/move-selective-grab updated
3934. By Marco Trevisan (Treviño)

Move: set default type to WmMoveResizeInvalid

3935. By Marco Trevisan (Treviño)

Move: push full grab in case that we arrived here because of different kind of activation

Such as ModifierKey+MouseButton. Also remove the unused type.

3936. By Marco Trevisan (Treviño)

Merging with parent branch (lp:~3v1n0/compiz/push-grab-types)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve
Revision history for this message
MC Return (mc-return) wrote :

I am already used to typing into my windows while moving them - it is quasi an "essential feature" from now on - although it takes quite some keyboard-mouse magic to do the trick ;)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/move/src/move.cpp'
2--- plugins/move/src/move.cpp 2013-06-28 01:10:57 +0000
3+++ plugins/move/src/move.cpp 2015-10-09 15:12:43 +0000
4@@ -104,7 +104,12 @@
5 ms->snapOffY = y - workArea.y ();
6
7 if (!ms->grab)
8- ms->grab = s->pushGrab (ms->moveCursor, "move");
9+ {
10+ if (state & CompAction::StateInitButton)
11+ ms->grab = s->pushPointerGrab (ms->moveCursor, "move");
12+ else
13+ ms->grab = s->pushGrab (ms->moveCursor, "move");
14+ }
15
16 if (ms->grab)
17 {
18@@ -572,10 +577,10 @@
19 case ClientMessage:
20 if (event->xclient.message_type == Atoms::wmMoveResize)
21 {
22- unsigned long type = (unsigned long) event->xclient.data.l[2];
23-
24 MOVE_SCREEN (screen);
25
26+ unsigned long type = event->xclient.data.l[2];
27+
28 if (type == WmMoveResizeMove ||
29 type == WmMoveResizeMoveKeyboard)
30 {

Subscribers

People subscribed via source and target branches