BunsenLabs / bunsen-utilities

https://pkg.bunsenlabs.org/debian/pool/main/b/bunsen-utilities/
GNU General Public License v3.0
31 stars 21 forks source link

bl-aerosnap fails if window is undecorated #18

Closed capn-damo closed 8 years ago

capn-damo commented 9 years ago

If the active window is undecorated, then after left/right snaps the top of the window is off the screen. The script then doesn't get the window geometry and fails.

Traceback (most recent call last): File "/home/damo/bin/bl-aerosnap", line 126, in <module> window_store() File "/home/damo/bin/bl-aerosnap", line 76, in window_store s = ID +'|'+window_geometry(ID)+'\n' TypeError: cannot concatenate 'str' and 'NoneType' objects

Hjdskes commented 9 years ago

@capn-damo Could you test this again with my version of the script?

Also, since I'm using XLib/EWMH directly, user defined margins should work now too - if Openbox does nothing weird in its implementation. They work in GNOME Shell at least, both with its own panel and a running tint2.

Hjdskes commented 9 years ago

^ Just confirmed: user defined margins work as expected now

Hjdskes commented 9 years ago

^^ Undecorated windows also work for me