From be66d6a934bd8b9fd94c536ad441ece889d0e602 Mon Sep 17 00:00:00 2001 From: leafnode Date: Sat, 1 Nov 2003 23:45:51 +0000 Subject: [PATCH] - added feature improving patch Changed files: FvwmPager.patch -> 1.1 --- FvwmPager.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 FvwmPager.patch diff --git a/FvwmPager.patch b/FvwmPager.patch new file mode 100644 index 0000000..e6b671b --- /dev/null +++ b/FvwmPager.patch @@ -0,0 +1,39 @@ +# This patch was created by anonymous user +# After applying, when you click on a miniature window +# in a pager with left mouse button, it will become focused +# and will raise to the top +# Clickong on miniature desktop doesn'd do anything. + +diff -urN fvwm/modules/FvwmPager/x_pager.c fvwm.patched/modules/FvwmPager/x_pager.c +--- fvwm/modules/FvwmPager/x_pager.c 2003-06-29 21:53:00.000000000 +0200 ++++ fvwm.patched/modules/FvwmPager/x_pager.c 2003-08-27 19:48:29.000000000 +0200 +@@ -1080,6 +1080,29 @@ + else if((Event->xbutton.button == 1)|| + (Event->xbutton.button == 2)) + { ++ if( (Event->xbutton.button == 1) && ++ (Event->xbutton.subwindow != None) ) ++ { ++ PagerWindow *t; ++ ++ t = Start; ++ while ((t != NULL)&&(t->PagerView != Event->xbutton.subwindow)) ++ t= t->next; ++ ++ if(t==NULL) ++ { ++ t = Start; ++ while ((t != NULL)&&(t->IconView != Event->xbutton.subwindow)) ++ t= t->next; ++ } ++ ++ if( t ) ++ { ++ SendText(fd, "Silent Raise", t->w); ++ SendText(fd, "Silent Focus", t->w); ++ } ++ } ++ + for(i=0;ixany.window == Desks[i].w) -- 2.43.0