]> git.pld-linux.org Git - packages/fvwm2.git/commitdiff
- added feature improving patch
authorleafnode <leafnode@pld-linux.org>
Sat, 1 Nov 2003 23:45:51 +0000 (23:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    FvwmPager.patch -> 1.1

FvwmPager.patch [new file with mode: 0644]

diff --git a/FvwmPager.patch b/FvwmPager.patch
new file mode 100644 (file)
index 0000000..e6b671b
--- /dev/null
@@ -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;i<ndesks;i++)
+       {
+       if(Event->xany.window == Desks[i].w)
This page took 0.058375 seconds and 4 git commands to generate.