Comments (8)
Can you test this, too? 😄 I think it is fixed, but I'm not sure how you reproduce this issue exactly.
from bunsen-utilities.
Now that I switched to using the parent window (Hjdskes@5bc730a), this issue is back:
~/code/bunsen-utilities master $= 12:54:57
> ./bl-aerosnap --right
Restoring to: 201 115 852 615
~/code/bunsen-utilities master $= 12:54:58
> cat /tmp/bl-aerosnap-1000
{}
~/code/bunsen-utilities master $= 12:55:01
> ./bl-aerosnap --right
Snapping window from : 201 115 852 629
Snapping window to: 683.0 0 683.0
~/code/bunsen-utilities master $= 12:55:03
> cat /tmp/bl-aerosnap-1000
{"<class 'Xlib.display.Window'>(0x00200543)-0": [201, 115, 852, 629]}
~/code/bunsen-utilities master $= 12:55:09
> ./bl-aerosnap --right
Restoring to: 201 115 852 629
~/code/bunsen-utilities master $= 12:55:15
> cat /tmp/bl-aerosnap-1000
{}
~/code/bunsen-utilities master $= 12:55:25
> ./bl-aerosnap --right
Snapping window from : 201 114 852 643
Snapping window to: 683.0 0 683.0
Cumulative snapping increases the height by (in my case, perhaps this is my window frame's height) 14 pixels every time.
from bunsen-utilities.
Indeed, this ugly hack resolves my issue:
diff --git a/bl-aerosnap b/bl-aerosnap
index 785b16c..de7cb6f 100755
--- a/bl-aerosnap
+++ b/bl-aerosnap
@@ -198,7 +198,7 @@ def get_window_geometry(win):
:param win: the X Window object"""
geom = win.get_geometry()
- return [geom.x, geom.y, geom.width, geom.height]
+ return [geom.x, geom.y, geom.width, geom.height-14]
def get_window_id(ewmh, win):
"""Returns a unique identifier for an X Window, made up of its "to string" and proces' PID.
Not sure what to do about this. Perhaps I need to use the x,y from the parent but the width,height from the actual window. Will test this now.
from bunsen-utilities.
It is definitely the window frames that are messing things up: undecorated windows work fine still.
from bunsen-utilities.
Latest push seems to have fixed the issue. However, I occasionally get this (bl-aerosnap says it is moving the window to the right half of the screen, but as you can see it does not occupy the full right half, even though the coordinates and dimensions reported are correct):
from bunsen-utilities.
@Hjdskes is your code now ready to merge into deuterium?
from bunsen-utilities.
No, it's not done yet.
from bunsen-utilities.
For lack of interest, bl-aerosnap has been removed from bunsen-utilities.
from bunsen-utilities.
Related Issues (20)
- bl-exit --logout fails HOT 5
- bl-exit - typo fixed HOT 1
- bl-exit: remove call to bl-lock with suspend? HOT 4
- Remove package scrot and bunsen-utilities is removed with it. HOT 2
- bl-obthemes: function countMonitors() fails if no primary monitor is set HOT 16
- hotkeys for bl-exit HOT 27
- bl-lock HOT 2
- bl-kb --gui outputs unnecessary text HOT 1
- bl-exit/merlin branch - make icon names consistent HOT 1
- bl-exit/merlin branch - test for icon dimensions HOT 9
- Commits in master should be in deuterium. HOT 5
- bl-exit/merlin: Need test for current monitor HOT 3
- yad scripts (deuterium) don't display help text if run in terminal HOT 4
- bin scripts (deuterium) not executable HOT 3
- bl-obthemes: firefox-esr icon lost when restoring HOT 9
- bl-exitrc [style] dir requires full filepath HOT 3
- bl-kb does not handle Keybinds wih multiple actions HOT 19
- bl-reload-gtk23 error message when reloading running xsettingsd HOT 2
- bl-conky-manager ignores symlinks to conky files HOT 3
- When bl-tint2-session load tint2-sessionfile, empty line launch default tint2rc.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunsen-utilities.