x-tile icon indicating copy to clipboard operation
x-tile copied to clipboard

Python errors with x-tile 3.1 an multi-monitor

Open toma315 opened this issue 4 years ago • 6 comments

After upgrading to 3.1 I get

$ x-tile WM = Xfwm4 Traceback (most recent call last): File "/usr/bin/x-tile", line 74, in x.reload_windows_list() File "/usr/share/x-tile/modules/core.py", line 1006, in reload_windows_list self.store.load_model(self) File "/usr/share/x-tile/modules/core.py", line 156, in load_model win_geom = support.get_geom(win_id) NameError: name 'win_id' is not defined

This looks like some new issue possibly limitted to multi monitor environments. Same happens in 3.0, 2.6 works for me, however.

Trying to fix this win_id error lead to some other error - at that stage I gave up trying to fix it myself.

toma315 avatar May 15 '20 08:05 toma315

I can confirm this behaviour with multi-monitor setup.

oz123 avatar May 28 '20 15:05 oz123

Unfortunately I cannot test with a second monitor at the moment but I pushed a fix that hopefully will at least move to the next error. When possible I will test myself but if you report me the issues we can still fix in hopefully few steps

giuspen avatar Jun 12 '20 18:06 giuspen

Thanks for your reply. Your latest fix helps to prevent the crash. However, windows are still only tiled in one desktop.

oz123 avatar Jun 14 '20 15:06 oz123

Thanks @oz123 I'll try and get hold of a monitor to try myself

giuspen avatar Jun 14 '20 15:06 giuspen

should be fixed in current version

giuspen avatar Nov 14 '20 22:11 giuspen

Thanks. That works now, although it only tiles windows on the primary screen.

oz123 avatar Nov 16 '20 20:11 oz123