Commit Graph
1541 Commits
Author SHA1 Message Date
Tor Hedin Brønner 2e407554be maximized: fix y position of eg. firefox wayland
Some windows apparently report the wrong frame.y value when they've just
been maximized, leaving us with the old incorrect value. Simply hardcode
the correct y value instead.
36.0
2020-03-07 14:25:19 +01:00
Tor Hedin Brønner f1b151524a edge overlays: Do not set when browsing workspaces 2020-03-07 13:30:10 +01:00
Tor Hedin Brønner add08a38d2 Fix top bar on enable
When unlocking the desktop with a fullscreen window focused we'd incorrectly
show the topbar.

Run fixTopBar after all spaces have been fully setup to fix it.
2020-03-07 13:26:16 +01:00
Tor Hedin Brønner 4f9383a430 Fix top bar on notify::fullscreen
If there's already a fullscreen window in the workspace, gnome-shell
won't trigger a hide on the topbar. Meaning fixTopBar won't run
automatically, so we need to run on any fullscreen changes.
2020-03-07 13:26:16 +01:00
Tor Hedin Brønner 108f7202ff edge overlays: hide when selecting a maximized window 2020-03-02 16:27:18 +01:00
Tor Hedin Brønner 5727ea94cf Space.isVisible: Work correctly with fullscreen windows 2020-03-01 18:55:42 +01:00
Tor Hedin Brønner a7da294946 Space.isVisible: use current, not future, coordinates 2020-03-01 18:54:54 +01:00
Tor Hedin Brønner 5dcee36d71 Polish up animate down for fullscreen windows
- Simply move the fullscreen clone if not visible
- Do not start a new animation one is already in progress
- Do not run animateDown when starting navigation
2020-03-01 18:54:27 +01:00
Tor Hedin Brønner 0c3f71d94d selection highlight: add rounded border 2020-03-01 18:13:05 +01:00
Ole Jørgen Brønner 8971ae73e3 Wayland-safe(r) override-redirect check
It looks like mutter doesn't maintain override_redirect on wayland windows (ie.
it doesn't try to emulate the X11-only(?) concept)

This caused many menues (eg. gtk menues) to be registered by us (creating clone,
registering resize signals, etc.)

Particularily noticable in libreoffice - the menus was very delayed and
sometimes didn't show up at all. (Observed in GS 3.34.3, libreoffice 6.2.6.2)

(TOOLTIP is checked preemptively)
2020-02-28 21:13:10 +01:00
Tor Hedin Brønner 069f687fcd readme: Update for 3.36 support 2020-02-27 15:35:02 +01:00
Tor Hedin Brønner 7916c610fd Merge pull request #254 from paperwm/gnome-shell-3.36
Gnome shell 3.36
2020-02-27 15:34:10 +01:00
Tor Hedin Brønner 1db0e1b6d4 animateDown: use workArea
This fixes some visual bugs when navigating secondary monitors with top
bar on primary.
2020-02-27 15:00:53 +01:00
Tor Hedin Brønner 233999f9d7 Space.workArea: Move most logic here 2020-02-27 15:00:53 +01:00
Tor Hedin Brønner 123a1f9f46 layout: do not move maximized windows in y direction
Ideally we want to do this with fullscreen windows too, but it currently
becomes a bit messy due to top bar transparency.
2020-02-27 14:59:46 +01:00
Tor Hedin Brønner bb503675a0 Fix top bar visibility on insert/remove window 2020-02-27 12:37:27 +01:00
konni 616d7712fa add resize functions to inc/dec height/width (#255) 2020-02-25 16:55:52 +01:00
Tor Hedin Brønner 806e304fe4 metadata: register 3.36 support 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner a817e55502 3.36: Add support for warping pointer in wayland 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner dce11d0c8b liveAltTab: fix abort 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner aa76906d0f kludges: fix for 3.35.90
TouchpadWorkspaceSwitchAction no longer exists
2020-02-25 10:44:00 +01:00
Tor Hedin Brønner 5c89890b18 workaround strange move_frame bug in 3.35...
For some reason after a successful `move_frame`, and `position-changed`,
the window is moved back to it's original position. This only happens
sporadically...

Anyway, just do the simply thing and make sure all `position-changed`
signals are correct.

NOTE: need a grab guard or something for non-clutter dnd
2020-02-25 10:44:00 +01:00
Tor Hedin Brønner f0b9d21ced navigator: fix escape 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner 5e94080e1d Fix and update workspace menu for 3.36
Upstream updated the menu style (and together with that some styles we
relied on). Fix it and make the look inline with the new upstream menus.
2020-02-25 10:44:00 +01:00
Tor Hedin Brønner a948b9b325 workspace menu: Fix signals for 3.35.2 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner 335a623be7 Polyfill Clutter.Vertex 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner 4ef1db8704 Polyfill actor.reparent/raise/raise_top
3.35.2 removed these deprecated methods, but the replacement is a bit
wieldy, so lets just polyfill.
2020-02-25 10:44:00 +01:00
Tor Hedin Brønner f5dd5b9c9d topbar: guard against non-existing space 2020-02-25 10:42:46 +01:00
Tor Hedin Brønner fccbf8eaf0 Fix hang: update panelMonitor on monitors-changed 2020-02-25 10:15:35 +01:00
Tor Hedin Brønner 00ee56e127 fixup last commit 2020-02-23 17:26:31 +01:00
Tor Hedin Brønner f90f5f3203 topbar: fix top bar showing on fullscreen space
Consolidate the logic into one function.
2020-02-23 17:10:23 +01:00
Tor Hedin Brønner bde77e7b17 signals: Actually forget disconnected signals 2020-02-23 16:40:09 +01:00
Ole Jørgen Brønner 73ef38e6a9 keybindings: bugfix 2020-02-23 15:17:51 +01:00
Tor Hedin Brønner ecd355115c top bar: Add only show on primary preference
Introduces `TopBar.panelMonitor` which points to the monitor currently
holding the top bar.
2020-02-23 14:51:08 +01:00
Tor Hedin Brønner a494ef9ca2 liveAltTab: fix in fog animation
We can't start animations on actors outside the stage.
2020-02-20 21:11:52 +01:00
Tor Hedin Brønner 9b0bdc908d liveAltTab: Make sure the clone is fully visible 2020-02-20 14:08:12 +01:00
Tor Hedin Brønner 1a20820848 Utils.Signals: fix connectOneShot
If the object had more than one signal connected, disconnect would cause
those signals to be forgotten.
2020-02-20 10:10:36 +01:00
Tor Hedin Brønner 7b287ab1c7 worksapace menu: Fix lingering show top bar 2020-02-20 09:25:22 +01:00
Tor Hedin Brønner 742de5afc9 clickoverlay: deactivate when in overview
Windows on a workspace can be placed on another monitor. Having the
clickoverlay active means it's impossible to interact with these
windows.

This is a quick fix to make the overview somewhat more acceptable when
using multiple monitors.
2020-02-18 10:34:04 +01:00
Tor Hedin Brønner 5811805186 topbar: fix visibility when focus is fullscreen 2020-02-17 16:14:55 +01:00
Tor Hedin Brønner 17d5fad6c0 disable: null out targetHeight/Width
This might fix a bug where changing monitors can leave windows in an
incorrect size.
2020-02-17 16:14:55 +01:00
Tor Hedin Brønner 4ccf271593 insertWindow: always set opacity after insertion
onComplete only runs if the animation actually finishes. While there
shouldn't be anything that runs a new scale animation on the clone, or
removes transitions. It doesn't hurt to be on the safe side and use
onStopped which is guaranteed to run, since the complete function is
essential.

ref https://github.com/paperwm/PaperWM/issues/248
2020-02-15 05:33:36 +01:00
Tor Hedin Brønner 1aebaf5832 background: recreate when changing monitor
Moving a space to another monitor with different fractional scaling
will mess up the background scale/size. Simply recreate the background
when moving monitors.

closes https://github.com/paperwm/PaperWM/issues/247
2020-02-13 11:58:05 +01:00
Tor Hedin Brønner cf36740aaa top bar: fix label position on start 2020-02-12 10:57:26 +01:00
Tor Hedin Brønner 10011c98c3 top bar: correctly hide on secondary monitors
ref #243
2020-02-12 10:29:16 +01:00
Tor Hedin Brønner bfe465bff7 workspace menu: don't expose hide top bar toggle
Clicking it makes it hard to bring it back. It's now togglable in the
prefs gui.
2020-02-10 21:38:03 +01:00
Ole Jørgen Brønner 0501e57745 prefs: add hide-top-bar switch
closes #239
2020-02-08 16:04:44 +01:00
Ole Jørgen Brønner 8a9d0c8bec prefs: add missing keybinding (toggle-scratch-window) 2020-02-08 00:18:25 +01:00
Ole Jørgen Brønner 087813801d install.sh: enable using gnome-extensions unconditionally
Bugfix old versions: install did not permanently enable extension.

`extensionSystem.enabledExtension(uuid)` does not write to dconf in 3.28 and 3.32
2020-02-01 14:41:06 +01:00
Romanos e629cde2cc schemas: fix typo (#236) 34.3 2020-01-27 15:55:16 +01:00