rharriso / pywo

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

Chromium browser does not behave as expected during put/resize (CTRL-KP0-9) #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout pywo (trunk)
2. Start Chromium
3. put and resize using CTRL-KP0_9

What is the expected output? What do you see instead?
I'm expecting chromium to be placed and resized on the screen
according to the default grid layout that other (gnome like) windows
seem to behave when using CTRL-KP0-9. But instead chromium windows are resized 
sporadically and made to be very small or thin instead of being anchored using 
the 3x2 layout.

What version of the product are you using? On what operating system?
Latest trunk rev58.

Please provide any additional information below.

Original issue reported on code.google.com by fernande...@gmail.com on 10 Dec 2010 at 10:05

GoogleCodeExporter commented 9 years ago
Just checked with Google Chrome version 9.0.597.15 dev - in both modes (system 
window borders and Chrome's minimal borders) and on my machine grid action 
behave as expected.

Could you please paste output of these two commands:
./pywo.py debug chromium
./pywo.py grid_width top-right chromium --debug

Do other actions work correctly with Chromium windows?

Original comment by kosci...@gmail.com on 10 Dec 2010 at 10:28

GoogleCodeExporter commented 9 years ago
Sure... please find the output of the debug commands mentioned in comment 1.  
Also, using Chromium 10.0.605.0 (68552) on Ubuntu 10.04  from the daily 
snapshot ppa.

Not too familiar with the other actions, but from what I can tell, Chromium 
does not exhibit the same moving behavior (using Alt-KP0_9) as do other windows 
as well.

And also forgot to mention in the original ticket... fantastic tool :)

$ ./pywo.py debug chromium
Xlib.protocol.request.QueryExtension
-= Window Manager =-
WindowManager=compiz
Desktops=1, current=0
Desktop=width: 4800, height: 1200
Viewport=x: 1600, y: 0
Workarea=x: 0, y: 24, width: 1600, height: 1152, x2: 1600, y2: 1176
-= Current Window =-
ID=18874415
Client_machine=gandalf
Name=Issue 2 - pywo - Chromium browser does not behave as expected during 
put/resize (CTRL-KP0-9) - Project Hosting on Google Code - Chromium
Class=chromium-browser.Chromium-browser
Type=['_NET_WM_WINDOW_TYPE_NORMAL']
State=['_NET_WM_STATE_MAXIMIZED_VERT', '_NET_WM_STATE_MAXIMIZED_HORZ']
Desktop=0
Borders=left: -1600, right: 1600, top: 24, bottom 24
Borders_raw=['-1600', '1600', '24', '24']
Geometry=x: 0, y: 0, width: 1600, height: 1200, x2: 1600, y2: 1200
Geometry_raw=<Xlib.protocol.request.GetGeometry serial = 196, data = {'height': 
1152, 'width': 1600, 'depth': 24, 'y': 24, 'x': -1600, 'border_width': 0, 
'root': <Xlib.display.Window 0x0000015a>, 'sequence_number': 196}, error = None>
Parent=None None
Normal_hints={'width_inc': 0, 'height_inc': 0, 'min_aspect': 
Xlib.protocol.rq.DictWrapper({'num': 0, 'denum': 0}), 'max_height': 0, 
'max_aspect': Xlib.protocol.rq.DictWrapper({'num': 0, 'denum': 0}), 
'min_height': 89, 'win_gravity': 1, 'flags': 528, 'max_width': 0, 'min_width': 
238, 'base_width': 0, 'base_height': 0}
Attributes=<Xlib.protocol.request.GetWindowAttributes serial = 200, data = 
{'do_not_propagate_mask': 0, 'your_event_mask': 0, 'override_redirect': 0, 
'bit_gravity': 1, 'all_event_masks': 6520959, 'save_under': 0, 'visual': 33, 
'win_class': 1, 'backing_bit_planes': 4294967295, 'backing_store': 0, 
'map_state': 2, 'win_gravity': 1, 'map_is_installed': 1, 'backing_pixel': 0, 
'sequence_number': 200, 'colormap': <Xlib.xobject.colormap.Colormap 
0x00000020>}, error = None>
Query_tree=<Xlib.protocol.request.QueryTree serial = 201, data = {'root': 
<Xlib.display.Window 0x0000015a>, 'parent': <Xlib.display.Window 0x0000015a>, 
'sequence_number': 201, 'children': [<Xlib.display.Window 0x01200030>, 
<Xlib.display.Window 0x01202aa8>, <Xlib.display.Window 0x0120005c>, 
<Xlib.display.Window 0x01200880>, <Xlib.display.Window 0x0121bb05>]}, error = 
None>
-= Move with same geometry =-
New geometry=x: 0, y: 0, width: 1600, height: 1200, x2: 1600, y2: 1200
-= End of debug =-

$ ./pywo.py grid_width top-right chromium --debug
Xlib.protocol.request.QueryExtension
Loading configuration file
Loaded configuration file
grid_width(position=(1.00, 0.00), invert_on_resize=True, gravity=(1.00, 0.00), 
size=width: [0.33333333333333331, 0.5, 0.66666666666666663], height: 0.5)
width: 800, height: 576

Original comment by fernande...@gmail.com on 13 Dec 2010 at 2:17

GoogleCodeExporter commented 9 years ago
I've just commited to repository a new version, that should fix the bug.

Original comment by kosci...@gmail.com on 13 Dec 2010 at 7:07

GoogleCodeExporter commented 9 years ago
I just tried out commit #63 and it works great with chromium along with other 
gnome like windows as expected.

Much appreciated; thanks!

Original comment by fernande...@gmail.com on 13 Dec 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Great to hear it works OK

Original comment by kosci...@gmail.com on 13 Dec 2010 at 10:23