| Ticket UUID: | 2912356 | |||
| Title: | ttk::sizegrip behaviour is wrong in compiz | |||
| Type: | Bug | Version: | obsolete: 8.6b1 | |
| Submitter: | egavilan | Created on: | 2009-12-11 00:04:17 | |
| Subsystem: | 88. Themed Tk | Assigned To: | jenglish | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2009-12-23 11:34:25 | |
| Resolution: | Fixed | Closed By: | jenglish | |
| Closed on: | 2009-12-23 04:34:25 | |||
| Description: |
The default behaviour of ttk::sizegrip on compiz is not right. The window manager seems to reposition the window on every <Configure> event, and the toplevel start jumping to the lower left corner of the screen when the grip is dragged. Other toolkits uses the _NET_WM_MOVERESIZE message as specified in http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2551196 to get the "right" behaviour. As a workaround, the patch in http://paste.tclers.tk/1890 improves things a bit. | |||
| User Comments: |
jenglish added on 2009-12-23 11:34:25:
Reports from the chat: sizegrip works OK (with or without patch) under XFCE4, WindowMaker 0.9x, and KDE 3.5. Under gnome+compiz and kubuntu+compiz, with patch it's still not quite right - similar behavior to fvwm95 and 4Dwm, except the toplevel jumps *down* about a titlebar's worth; but without the patch it's utterly batsh*t crazy. Conclusion: setting X and Y in addition to width and height in the [wm geometry] call doesn't break anything that wasn't already broken (4Dwm, fvwm95), and makes things considerably less broken under compiz. Committing. Will save _NET_WM_MOVERESIZE for another day. jenglish added on 2009-12-23 08:05:35: Also: re: _NET_WM_MOVERESIZE: I have some code that does this, and it (appears to) work correctly under metacity, but it _definitely_ makes things worse under non-EWMH-aware WMs. Needs some more work before it's ready to commit. jenglish added on 2009-12-23 08:00:17: File Added - 356203: sizegrip.test jenglish added on 2009-12-23 07:52:13: File Added - 356201: sizegrip.patch jenglish added on 2009-12-23 07:44:08: More info: tested under metacity (couple different versions), mwm (old old AIX version) 4DWm (old old SGI version), and fvwm95 (v2.0.43b). Results so far: patch does not make anything worse than it already was. Under metacity and mwm: sizegrip works OK with or without patch. Under 4DWm and fvwm95, the window takes a small jump to the NW the first time the sizegrip is dragged; this happens with or without the patch. Need to test this under kwin as well (as many versions as possible, but at least 3.X and 4.X). If it works OK there -- or at least doesn't make things any worse -- then will commit. jenglish added on 2009-12-22 09:03:50: As far as I can tell Tk is doing the ICCCMly correct thing in this case (sending a ConfigureRequest with CWWidth|CWHeight set). I'm going to tentatively blame this on compiz....
Unfortunately the patch in http://paste.tclers.tk/1890 (basically: call [wm geometry ${w}x${h}+${x}+${y}] instead of just [wm geometry ${w}x${h}]) is likely to cause problems under *other* WMs -- partly because Tk is known to *not* be ICCCMly correct here; see also note (4) under "a few tricky points" in UpdateGeometryInfo().
Will investigate/experiment further...
| |||
Attachments:
- sizegrip.test [download] added by jenglish on 2009-12-23 08:00:16. [details]
- sizegrip.patch [download] added by jenglish on 2009-12-23 07:52:13. [details]
