[Pkg-wmaker-commits] [wmbubble] 03/207: Click to unlock, not leave and enter again (debian)

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:17:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 422279d07f0b6cffd839eb9bdd9ec1a69df2b5b5
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Mon Aug 29 19:09:38 2011 -0700

    Click to unlock, not leave and enter again (debian)
---
 bubblemon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 89cdee7..1ffec13 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -418,7 +418,7 @@ int main(int argc, char **argv)
 		    break;
 		case GDK_BUTTON_PRESS:
 		    if (event->button.button == 3) {
-			bm.picture_lock = 1;
+			bm.picture_lock = bm.picture_lock ? 0 : 1;
 			break;
 		    }
 		    if (event->button.button <= argc) {
@@ -433,8 +433,8 @@ int main(int argc, char **argv)
 		     * meminfo */
 		    proximity = 1;
 
-		    bm.screen_type = get_screen_selection();
-		    bm.picture_lock = 0;
+		    if (!bm.picture_lock)
+			bm.screen_type = get_screen_selection();
 		    break;
 		case GDK_LEAVE_NOTIFY:
 		    /* mouse out: back to light */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list