justTony / pytyle

Automatically exported from code.google.com/p/pytyle
GNU General Public License v3.0
0 stars 0 forks source link

Windows are not tiled on startup (but only after any wm event) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Execute pytyle2 with config option tile_on_startup = Yes
2. Windows are not tiled immediately after execution
3. Produce any wm event (click, try to move window, alt-tab, etc)
4. Windows are now tiled

What is the expected output? What do you see instead?

Windows should be tiled from the beginning.

What version of the product are you using? On what operating system?

pytyle2 (from hg) on openbox (from git).

Original issue reported on code.google.com by carlosjo...@gmail.com on 2 Feb 2011 at 12:24

GoogleCodeExporter commented 8 years ago
Great catch.

The problem is that tiling and window movement actions are processed only once 
in the event loop (they are added to a queue). The initial call to 
state.apply_config() in ./pytyle2 correctly tiles if the tile_on_startup is 
enabled, but the queue isn't processed until at least one event occurs.

In either case, this is fixed, committed and pushed.

Original comment by jamslam@gmail.com on 2 Feb 2011 at 5:57