Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37556003
en ru br
ALT Linux repositórios
S:1.07-alt6
5.0: 1.07-alt4
4.1: 1.07-alt3
4.0: 1.07-alt3
3.0: 1.07-alt1

Group :: Sistema/X11
RPM: wmctrl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: wmctrl-sticky-workspace.patch
Download


--- a/main.c	
+++ a/main.c	
@@ -681,7 +681,7 @@ static int window_to_desktop (Display *disp, Window win, int desktop) {/*{{{*/
     unsigned long *cur_desktop = NULL;
     Window root = DefaultRootWindow(disp);
    
-    if (desktop == -1) {
+    if (desktop == -2) {
         if (! (cur_desktop = (unsigned long *)get_property(disp, root,
                 XA_CARDINAL, "_NET_CURRENT_DESKTOP", NULL))) {
             if (! (cur_desktop = (unsigned long *)get_property(disp, root,
@@ -897,7 +897,7 @@ static int action_window (Display *disp, Window win, char mode) {/*{{{*/
         
         case 'R':
             /* move the window to the current desktop and activate it => -r */
-            if (window_to_desktop(disp, win, -1) == EXIT_SUCCESS) {
+            if (window_to_desktop(disp, win, -2) == EXIT_SUCCESS) {
                 usleep(100000); /* 100 ms - make sure the WM has enough
                     time to move the window, before we activate it */
                 return activate_window(disp, win, FALSE);
--- a/wmctrl.1	
+++ a/wmctrl.1	
@@ -258,7 +258,8 @@ Include WM_CLASS in the window list or interpret <WIN> as the WM_CLASS name.
 .TP
 .I <DESK>
 A Desktop is always specified by an integer which represents the
-desktop numbers. Desktop numbers start at 0.
+desktop numbers. Desktop numbers start at 0. Use -1 to pin to all
+desktops.
 
 .TP
 .I <MVARG>
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009