diff options
| author | tv <tv@krebsco.de> | 2026-11-12 02:35:57 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-12 03:58:47 +0100 |
| commit | e974ac31ff1e08ca681db3c4108ae2a596e5655c (patch) | |
| tree | ddf7d6cc1a8fa7bfe663266b7f735a408ffa90cf /src | |
| parent | f792f1db052afd4f4af9bca568fe2b8fb96ea7e8 (diff) | |
shift the window given on the command line
shift and shiftview carried an undefined window, so choosing a workspace
in either mode crashed when the window was moved. They now move the
first window id from the command line, which is the focused window of
the focused workspace.
_NET_ACTIVE_WINDOW is no longer read: its value was unused, and the
pager failed to start when the property was missing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/desktop-pager.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/desktop-pager.hs b/src/desktop-pager.hs index 830b32e..a689b72 100644 --- a/src/desktop-pager.hs +++ b/src/desktop-pager.hs @@ -132,10 +132,16 @@ main = do in case args of "shift" : focusWindows_ -> - ( ShiftWindowToWorkspace undefined, map readInt focusWindows_ ) + let + focusWindow : _ = map readInt focusWindows_ + in + ( ShiftWindowToWorkspace focusWindow, map readInt focusWindows_ ) "shiftview" : focusWindows_ -> - ( ShiftWindowToAndViewWorkspace undefined, map readInt focusWindows_ ) + let + focusWindow : _ = map readInt focusWindows_ + in + ( ShiftWindowToAndViewWorkspace focusWindow, map readInt focusWindows_ ) "view" : focusWindows_ -> ( ViewWorkspace, map readInt focusWindows_ ) @@ -144,8 +150,6 @@ main = do error $ "bad arguments: " <> show args - Just activeWindow <- X11.withDefaultDisplay X11.getActiveWindow - screenGeometry <- X11.withDefaultDisplay $ \display -> do let rootWindow = X11.defaultRootWindow display |
