summarylogtreecommitdiffstats
path: root/minus-backgroundmanager.patch
diff options
context:
space:
mode:
authorQue Quotion2018-09-17 06:09:47 +0900
committerQue Quotion2018-09-17 06:09:47 +0900
commit3de9564dee82434fd6bc59e724ecfd03942c0206 (patch)
tree460a0b1e0b6ef6814ffcb8012b4ce4bf5e2d2ad2 /minus-backgroundmanager.patch
parent8390531c3213edfdc352b44fca0bc09b61d44063 (diff)
downloadaur-3de9564dee82434fd6bc59e724ecfd03942c0206.tar.gz
Dodge maximized windows: two new autohide modes.
Dodge avoids the currently focused and maximized window, but appears with struts on mouseover (pushes windows down). Dodge-Float avoids the currently focused and maximized window, but appears without struts on mouseover (hovers over windows). Dodge maximize code imported from Keith Bailey's fork: https://code.launchpad.net/~kbailey4444/wingpanel/dodge-maximize Co-authored-by: Keith Bailey <kbailey4444@gmail.com>
Diffstat (limited to 'minus-backgroundmanager.patch')
-rw-r--r--minus-backgroundmanager.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/minus-backgroundmanager.patch b/minus-backgroundmanager.patch
index 234c7bb14819..9a8250841f28 100644
--- a/minus-backgroundmanager.patch
+++ b/minus-backgroundmanager.patch
@@ -34,7 +34,7 @@
public Panel (Services.PopoverManager popover_manager) {
Object (popover_manager : popover_manager);
-@@ -64,39 +63,6 @@
+@@ -64,43 +63,6 @@
style_context = this.get_style_context ();
@@ -69,8 +69,12 @@
-
- popover_manager.close ();
-
+- var scale_factor = this.get_scale_factor ();
+- var x = (int)event.x_root * scale_factor;
+- var y = (int)event.y_root * scale_factor;
+-
- var background_manager = Services.BackgroundManager.get_default ();
-- return background_manager.begin_grab_focused_window ((int)event.x_root, (int)event.y_root, (int)event.button, time, state);
+- return background_manager.begin_grab_focused_window (x, y, (int)event.button, time, state);
}
public void cycle (bool forward) {