Merge lp:~mc-return/compiz/compiz.merge-fix284158-cube-rotate-eats-mouse-clicks-on-side-of-screen into lp:compiz/0.9.11

Proposed by MC Return
Status: Needs review
Proposed branch: lp:~mc-return/compiz/compiz.merge-fix284158-cube-rotate-eats-mouse-clicks-on-side-of-screen
Merge into: lp:compiz/0.9.11
Diff against target: 60 lines (+31/-1)
2 files modified
plugins/rotate/src/rotate.cpp (+28/-0)
plugins/rotate/src/rotate.h (+3/-1)
To merge this branch: bzr merge lp:~mc-return/compiz/compiz.merge-fix284158-cube-rotate-eats-mouse-clicks-on-side-of-screen
Reviewer Review Type Date Requested Status
MC Return Needs Information
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+176722@code.launchpad.net

Commit message

Rotate Cube plugin:
Do not eat mouse clicks on the sides of the screen.

(Credits and thanks for this patch, Matija Skala <email address hidden>)

(LP: #284158) !!!

Description of the change

It fixes the bug, but seems to break "Edge Flip Pointer" and "Edge Flip DnD" here...

To post a comment you must log in.
Revision history for this message
MC Return (mc-return) :
review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
MC Return (mc-return) wrote :

This needs information from the original author.
Let us see if he comments on it, otherwise we might have to reject it.

review: Needs Information

Unmerged revisions

3773. By MC Return

Minor improvements:
No need to negate, added name of the bool

3772. By Matija Skala

Rotate cube plugin:
Do not eat mouse clicks on the sides of the screen

(LP: #284158) !!!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/rotate/src/rotate.cpp'
--- plugins/rotate/src/rotate.cpp 2013-05-21 14:13:15 +0000
+++ plugins/rotate/src/rotate.cpp 2013-07-24 16:00:47 +0000
@@ -800,6 +800,17 @@
800800
801 break;801 break;
802802
803 case FocusIn:
804 case FocusOut:
805 /* Edges on when grabbed */
806 if (!optionGetEdgeFlipPointer ())
807 {
808 if (event->xfocus.mode == NotifyGrab)
809 toggleEdges (true);
810 else if (event->xfocus.mode == NotifyUngrab)
811 toggleEdges (false);
812 }
813
803 case ClientMessage:814 case ClientMessage:
804 if (event->xclient.message_type == Atoms::desktopViewport)815 if (event->xclient.message_type == Atoms::desktopViewport)
805 {816 {
@@ -892,6 +903,23 @@
892 window->activate ();903 window->activate ();
893}904}
894905
906void
907RotateScreen::toggleEdges (bool enabled)
908{
909 ROTATE_SCREEN (screen);
910
911 if (enabled)
912 {
913 screen->addAction (&rs->optionGetRotateFlipLeftEdge ());
914 screen->addAction (&rs->optionGetRotateFlipRightEdge ());
915 }
916 else
917 {
918 screen->removeAction (&rs->optionGetRotateFlipLeftEdge ());
919 screen->removeAction (&rs->optionGetRotateFlipRightEdge ());
920 }
921}
922
895void 923void
896RotateWindow::grabNotify (int x,924RotateWindow::grabNotify (int x,
897 int y,925 int y,
898926
=== modified file 'plugins/rotate/src/rotate.h'
--- plugins/rotate/src/rotate.h 2013-05-19 13:44:51 +0000
+++ plugins/rotate/src/rotate.h 2013-07-24 16:00:47 +0000
@@ -105,7 +105,9 @@
105 CompOption::Vector &options);105 CompOption::Vector &options);
106106
107 int rotateToDirection (int face);107 int rotateToDirection (int face);
108 108
109 void toggleEdges (bool enabled);
110
109 bool rotateTo (CompAction *action,111 bool rotateTo (CompAction *action,
110 CompAction::State state,112 CompAction::State state,
111 CompOption::Vector &options,113 CompOption::Vector &options,

Subscribers

People subscribed via source and target branches

to all changes: