Commit Graph
70 Commits
Author SHA1 Message Date
Tor Hedin Brønner c67dec5ff6 Quick and dirty fix so that we're not double ensuring on focus
Keep track of what window we're moving into view, so we can abort subsequent
calls on the same window.
2017-09-13 23:30:12 +02:00
Ole Jørgen Brønner 32134619dc Don't wrap around on next/prev window 2017-09-13 21:29:57 +02:00
Ole Jørgen Brønner faf28459bb Change windows without changing focus immediately (on modifier release) 2017-09-13 19:13:55 +02:00
Ole Jørgen Brønner 6bc2f01afd repl: slow down factor 2017-09-13 17:40:27 +02:00
Tor Hedin Brønner a80786a0c7 Fix adding new window to the start (ie. index 0)
Should now properly set the initial position of new windows at the start, eg.
the first window on a workspace or maximized windows.
2017-09-13 16:40:35 +02:00
Ole Jørgen Brønner 64a455e85e regression maximize: key handlers have a particular signature
Added a `as_key_handler` helper to adapt simple functions to key handlers
2017-09-13 14:23:48 +02:00
Tor Hedin Brønner 69be1f4fcf Use custom maximize for new maximized windows 2017-09-13 13:10:19 +02:00
Tor Hedin Brønner 6e95b09162 Rename log to debug, as log is already used 2017-09-13 12:40:48 +02:00
Tor Hedin Brønner e8caf0eec7 Use the original x position on maximize before ensure 2017-09-12 17:46:56 +02:00
Tor Hedin Brønner 2deedca4e3 Fix ensure_viewport to center large windows
That is only use as much margin as there's room for without pushing the window
outside the viewport
2017-09-12 17:13:46 +02:00
Ole Jørgen Brønner 9a14679868 Action: toggle_maximize_horizontally
The built in maximze function forces the window to be fully visible so if we're
to use these we have to do some stuff when focus changes to other window.

One option is to simply unmaximize on focus-lost.

Or find out if it's possible to disable those constraints. (probably not, see
constraints in mutter)
2017-09-12 15:09:29 +02:00
Ole Jørgen Brønner 64e7134dca notes maintance 2017-09-12 13:02:06 +02:00
Ole Jørgen Brønner bb3afeae78 notes maintance 2017-09-12 13:00:32 +02:00
Tor Hedin Brønner 9943b02e10 Add center functionality
Set `zen` to true to push all windows to the sides.
2017-09-12 12:41:33 +02:00
Tor Hedin Brønner 55c2c89a35 Fix stack level regression
Shouldn't lower the window which is brought into view.
2017-09-11 21:41:51 +02:00
Tor Hedin Brønner 1a32295aca Fix typo: move_right -> move_left 2017-09-11 21:39:32 +02:00
Tor Hedin Brønner 402147fa7a Fix broken startup
The workspace init loop doesn't like that workspaces aren't fully initialized
when running add_all_from_workspaces(workspace). (not sure why, since we really
should only be referencing workspaces[workspace.workspace_index] which is
initialized above the call.
2017-09-11 20:45:31 +02:00
Ole Jørgen Brønner 067f911927 ADHOC: Change default schema location 2017-09-11 20:23:39 +02:00
Ole Jørgen Brønner cf433f9210 Actions: move_left/right (<meta><shift>,/.)
Moves the focused window left/right in the tiling
2017-09-11 20:21:42 +02:00
Tor Hedin Brønner 61a33ad3bf Control the left and right edge of windows better
Anchor scaling/animation on the left edge for windows positioned to the right,
and on the right edge for windows positioned to the left.
2017-09-11 20:21:18 +02:00
Tor Hedin Brønner aee6adfbb6 Convenience: run add_all_from_workspace on startup 2017-09-11 19:10:38 +02:00
Tor Hedin Brønner fbb24ef75a Crash on fast close window/open window 2017-09-11 18:58:59 +02:00
Tor Hedin Brønner e1ad802040 Better new window animation
Move the window immediately to the correct position and adjust with
ensure_in_viewport.
2017-09-11 18:29:00 +02:00
Tor Hedin Brønner a335f49286 Bind <super>space to activities overview 2017-09-11 18:21:05 +02:00
Tor Hedin Brønner 97fa1d4aee Bind cycle-window to super too 2017-09-11 18:05:38 +02:00
Ole Jørgen Brønner e600299a9d Custom schema (let us create new keybindings/actions)
The path to the schema dir have to be set adhoc until we create a proper
extension.
2017-09-11 18:02:55 +02:00
Tor Hedin Brønner 772773c027 Focus window to the left when closing window 2017-09-11 17:15:52 +02:00
Tor Hedin Brønner 28b9b87408 Always propogate window changes 2017-09-11 15:31:00 +02:00
Tor Hedin Brønner 9a1efc1c13 Don't break when there's no focus_window
Sometimes when running apps from activities, and always for the first added
window on a workspace
2017-09-11 12:59:04 +02:00
Tor Hedin Brønner c3be4b3a97 Bug 2017-09-11 01:36:38 +02:00
Tor Hedin Brønner 52efb8bb38 Add a little debug script which uses journalctl
Inserts a new line and two spaces after the journal stamp for readability
2017-09-11 01:34:42 +02:00
Tor Hedin Brønner 39f15cbcce Fix: scaling issue using set_pivot_point
`scale_center` is deprecrated, new windows gets 0.5, 1 as pivot point to scale
around, which doesn't mix well with scaling_center.
2017-09-11 00:38:04 +02:00
Tor Hedin Brønner 77038a1029 Some notes on moving 2017-09-10 23:39:47 +02:00
Tor Hedin Brønner 6623a44f37 Add rudimentary support for multiple workspaces 2017-09-10 21:05:45 +02:00
Tor Hedin Brønner bf3a9048d1 Use 250ms easeInOutQuad for animations 2017-09-10 20:01:05 +02:00
Tor Hedin Brønner 035bd01f21 Use linear transition, looks better for now 2017-09-10 18:00:00 +02:00
Tor Hedin Brønner 068a2e75b3 Add close window binding 2017-09-10 17:58:40 +02:00
Tor Hedin Brønner 42d272bea1 Only add 'normal' windews to the scroll strip 2017-09-10 17:06:59 +02:00
Tor Hedin Brønner e3cb8df39a bug: detect transient windows 2017-09-10 14:10:44 +02:00
Tor Hedin Brønner 7309d7454e Add somewhat proper statusbar height detection 2017-09-09 22:11:10 +02:00
Tor Hedin Brønner 24aeb93462 Some TODOs and stuff 2017-09-09 22:09:44 +02:00
Ole Jørgen Brønner 8132cd7d96 Set initial position in focus handler:
Position changes from `window-added` handler seems to be overwritten/ignored.

+ some animation changes
2017-09-09 18:53:51 +02:00
Ole Jørgen Brønner 86dccdbfc0 focus is no longer an index 2017-09-09 16:56:24 +02:00
Tor Hedin Brønner e89e60c6b8 Add some missing globals 2017-09-09 16:38:21 +02:00
Tor Hedin Brønner ecc6262826 Refactor focus to focus() 2017-09-09 16:19:44 +02:00
Tor Hedin Brønner 783df4e037 Don't remove negative indexes 2017-09-09 16:16:56 +02:00
Ole Jørgen Brønner 9346d52826 Some debugging code related to controlling position of new windows 2017-09-09 02:41:05 +02:00
Ole Jørgen Brønner 2524b3aa5c Add notes.org for collectiong misc documentation and findings 2017-09-09 01:51:24 +02:00
Ole Jørgen Brønner 9c9c0a29f0 More robust "window-removed" handler:
See comments in remove_handler for details.

+ Simple log utility
+ Signal handler wrapper utility (lookup handler by name)
2017-09-09 01:46:06 +02:00
Ole Jørgen Brønner c731ad2a19 add_all_from_workspace: add all windows in a workspace to the tiling 2017-09-09 00:40:19 +02:00