Commit Graph
759 Commits
Author SHA1 Message Date
Tor Hedin Brønner dbd163972a Resize column width, using selecteWindow width if possible 2018-06-25 16:50:44 +02:00
Tor Hedin Brønner 867aca68a4 Set the first window in a column as overlay target 2018-06-25 16:50:44 +02:00
Tor Hedin Brønner 81e6be9a2c Detect visibility correctly 2018-06-25 16:50:44 +02:00
Tor Hedin Brønner 1262e73a6c Align columns on the y axis on ensure viewport 2018-06-25 16:50:44 +02:00
Tor Hedin Brønner 2fb3bcef10 Use Tiling.noAnimate 2018-06-25 16:50:43 +02:00
Tor Hedin Brønner 4acfe41ac3 Refactor fixColumn out of move_to 2018-06-25 16:50:43 +02:00
Tor Hedin Brønner d3f8f5bf4c Restore tiling correctly on disable/enable 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner 162c83ef9c Add updateSelection to handle position of the selection highlight 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner a5fcf5692a Rudimentary slurp function 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner 42dc4ba8b2 Wrap moveSizeHandler for easier re-eval 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner 0b202ba7b9 Move other windows in current window's column 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner 5fc37aebe0 Default values for x and y in 'move' 2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner 92d7974204 Only render first row of columns in minimap (instead of flattening everything) 2018-06-25 16:50:43 +02:00
Tor Hedin Brønner 4c67943b43 Handle columns properly in move_to 2018-06-25 16:50:43 +02:00
Tor Hedin Brønner fc3628bad4 Refactor space into an array of columns
This sets us up for supporting vertical tiling.
2018-06-25 16:50:43 +02:00
Illya Klymov 6f270ac442 Hide window previews after workspace was selected (#60)
I'm using paperwm without coloring each workspace (actually I'm using other extension which changes wallpaper on workspace change). In that case I can see workspace previews in background (especially if target workspace is empty).

This change hides previews when workspace change was done
2018-06-25 16:49:28 +02:00
Ole Jørgen Brønner b86a7a3115 Don't force position on first window
(This got lost when c7e4d99a35 was rebased)
2018-06-23 19:34:06 +02:00
Ole Jørgen Brønner c18ce14e00 Return early in Scratch.show if there's no scratch windows 2018-06-23 19:31:26 +02:00
Tor Hedin Brønner c7e4d99a35 Don't force the position of the first and last window 2018-06-23 19:09:46 +02:00
Tor Hedin Brønner dcb302d21d moveSizeHandler: return if window is already moving 2018-06-23 14:17:34 +02:00
Tor Hedin Brønner c991ce3765 centerWindowHorizontally: Animate and use whole pixels 2018-06-23 12:48:46 +02:00
Tor Hedin Brønner 0eade6d5cd Use grab-op-begin/end to turn off and on animation
Also let the user freely move a window on the y axis fixing the position when
the grab is done.
2018-06-23 12:48:46 +02:00
Tor Hedin Brønner cb9f73fc14 Only fix stack around an actual window
ref #56
2018-06-22 18:52:08 +02:00
Ole Jørgen Brønner cca3038957 Center window function (with mouse warp)
I find myself centering the focus window quite often since it's more
comfortable looking straight ahead.
2018-06-21 22:21:26 +02:00
Tor Hedin Brønner aa5a317625 move_to: avoid infinite loops 2018-06-21 11:55:18 +02:00
Tor Hedin Brønner ff17aa1aa3 clickoverlays: destroy any lingering previews on disable 2018-06-17 11:28:57 +02:00
Tor Hedin Brønner 5015cd2051 readme: specify app handlers a bit more 2018-06-16 02:36:26 +02:00
Tor Hedin Brønner c4f7efe2de readme: document new window handlers 2018-06-15 23:41:58 +02:00
Tor Hedin Brønner 5b491d77a9 app: Look up custom window handlers in a dict
This makes it easier to add new handlers in `user.js`.
2018-06-15 10:19:29 +02:00
Tor Hedin Brønner 3e4d9901d5 minimap: Use a more visible style for selection highlight 2018-06-14 21:14:33 +02:00
Tor Hedin Brønner 2c331640ae Hide minimized windows on startup
Should fixup e707ba404e
2018-06-11 19:44:07 +02:00
Tor Hedin Brønner f6c12ae55d clickoverlays: show a preview on hover 2018-06-05 21:23:42 +02:00
Tor Hedin Brønner e707ba404e disable: Only show windows on active workspace
This avoids showing all the window actors in the background when we disable.
2018-06-05 18:57:08 +02:00
Tor Hedin Brønner 1c998302f3 moveHandler: use correct y coordinates 2018-06-05 18:25:51 +02:00
Tor Hedin Brønner 085c6d7ddc Position windows at half the screen, when moving them to another space 2018-06-05 00:27:42 +02:00
Tor Hedin Brønner da7547699d Fix window actor visibility after position-changed
`move-done` wasn't being run properly leaving the clones showing.
2018-06-03 23:15:39 +02:00
Tor Hedin Brønner 5827606a63 Constrain clickoverlays to 75 pixel width
We only replace windows with clones when their position isn't possible, ie. when
they're less than 75 pixels inside the space, they're maximized or fullescreen.

The clickoverlays is now mostly decoupled from the visible status of the window
actor. They now always target the first window with an edge outside the
monitor. The width however is limited to 75 pixels (unless the window isn't
visible) making eg. drag and drop and drop possible while edge clicking will
never send input to the window.

The clickoverlays will now also span the window gap which makes it possible to
click on windows that's just off the monitor.
2018-06-03 14:21:18 +02:00
Ole Jørgen Brønner b4c3184d79 Notes 2018-06-03 14:16:16 +02:00
Ole Jørgen Brønner f6c8b902df Bugfix: selected window in minimap somtimes out of view for large maps
Happened if the minimap strip exceeded the monitor width and the initially
selected window was one of the rightmost windows.
2018-06-03 10:19:15 +02:00
Tor Hedin Brønner 632ff93ce7 Hide the clickoverlay when unwanted, show again on focus
This should fix the issues with the clickoverlay and the scratch layer, where
the overlay would be inactive after closing the scratch layer.
2018-06-03 00:49:49 +02:00
Tor Hedin Brønner 8296ffa786 Avoid killing eg. minimize animations on alt-tab
`_initialSelection` happens after pushModal possibly fails preventing proper
clean up.
2018-06-01 17:02:36 +02:00
Tor Hedin Brønner 293f2d18cd Add missing <Super><Ctrl>Left/Right binding 2018-05-29 18:32:43 +02:00
Tor Hedin Brønner 50158d6f91 <Super>Up/Down: bind to workspace mru stack
Also add <Super><Ctrl>Down/UP
2018-05-29 18:30:35 +02:00
Tor Hedin Brønner 5d9801ebb7 Fix the stackoverlay on startup and reload
ensureViewport needs to be run on the active space last.
2018-05-29 18:09:02 +02:00
Tor Hedin Brønner 748a300b9b Move the tiling when the selected window is moved
This puts the window in place vertically and makes it possible manually position
the tiling.

ref #54
2018-05-29 18:09:02 +02:00
Tor Hedin Brønner 0b2a26e69a Turn propagate into a for loop 2018-05-29 17:43:33 +02:00
Tor Hedin Brønner 2e23a8aa78 <Super>Home/End: activate first/last window 2018-05-29 14:22:35 +02:00
Tor Hedin Brønner cd6492443a readme: Document <Super>Left/Right 2018-05-29 14:06:48 +02:00
Tor Hedin Brønner 19695dfbfa disable: reset our own keybindings 2018-05-29 13:46:12 +02:00
Tor Hedin Brønner e48fef508f Restore restore-shortcuts binding 2018-05-27 21:30:25 +02:00