| Ticket UUID: | 1162739 | |||
| Title: | Smoother interactive resizing on X11 | |||
| Type: | Patch | Version: | None | |
| Submitter: | jenglish | Created on: | 2005-03-14 02:52:59 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | jenglish | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2005-03-15 09:16:45 | |
| Resolution: | Invalid | Closed By: | jenglish | |
| Closed on: | 2005-03-15 02:16:45 | |||
| Description: |
Tk currently uses NorthWestGravity for the win_gravity and bit_gravity window attributes. This makes interactive resizing less smooth than it ought to be. The problem is most visible in panedwindows with '-opaqueresize true' -- as you drag the sash up and down, the opposite border and window contents may jiggle, shake, and jump around. What's happening is: when the panedwindow sets the new geometry of the slave, the X server shifts the existing contents according to the bit_gravity and/or win_gravity attributes (depending on whether the window is directly managed by the panedwindow or is a descendant of the pane slave). Then a split-second later, the window redraws itself, this time with the correct geometry. Attached patch changes Tk to use StaticGravity for both attributes; this hint tells the X server to leave the pixels where they are when the window is resized. | |||
| User Comments: |
jenglish added on 2005-03-15 09:16:45:
File Deleted - 125452: Logged In: YES user_id=68433 OK, don't use that patch: setting win_gravity = StaticGravity is completely wrong. win_gravity = NorthWestGravity, which means "don't move this window _relative to its parent_ when the parent is resized" and is what Tk currently uses, is correct and necessary for Tk's geometry managers. Setting bit_gravity = StaticGravity is OK, and helps a little bit, but not very much. jenglish added on 2005-03-14 09:52:59: File Added - 125452: tk-bitgravity.patch | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki