| Ticket UUID: | 220260 | |||
| Title: | Under Enlightenment, calls to 'raise toplevel' are very slow | |||
| Type: | Bug | Version: | obsolete: 8.2 | |
| Submitter: | welch | Created on: | 2000-10-31 23:02:52 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | hobbs | |
| Priority: | 2 | Severity: | ||
| Status: | Closed | Last Modified: | 2001-08-29 02:28:17 | |
| Resolution: | Fixed | Closed By: | hobbs | |
| Closed on: | 2001-08-28 19:28:17 | |||
| Description: |
OriginalBugID: 3777 Bug Version: 8.3b1 SubmitDate: '1999-12-06' LastModified: '2000-04-12' Severity: SER Status: Closed Submitter: key ChangedBy: ericm RelatedBugIDs: 2581 2478 OS: Linux-Red Hat ClosedDate: '2000-04-12' steps to reproduce: 1) Start wish 2) type "toplevel .t" 3) type "raise .t" expected result: command returns quickly actual result: command returns after about 2 seconds Scott Stanton, Jeff and I tracked this down to a problem in TkWmRestackToplevel in tkUnixWm.c. Basically here's the problem: that function wants to find the user-level window (ie, the thing with the window border/decorations). To do this on most wm's, you can walk to the top of the x window hierarchy, then go down one. In enlightenment, there is an extra "pseudo-root" window in place, so we get the wrong window. This ultimately leads to a timeout in WaitForEvent when it is waiting for a configure event to come through. The timeout is the cause of the slowness. Graphically, here's the hierarchy we are expecting: root user window application (tk) here's what we have: root enlightenment user window application Unfortunately, Scott says we can't just go up one from the application window either, because there may be intervening windows there as well. So it seems that we need a better algorithm for finding the user window, but I don't know what that is. Donal Fellows may have sent Jeff a partial patch that is Enlightenment specific, but it has not been examined at all. - eric -- 12/07/1999 ericm At long last we have determined that this is in fact an Enlightenment bug. The version of Enlightenment installed with Redhat 6.0 is version 0.15.5, and it exhibits this bug. On upgrading to the latest release of Enlightenment, 0.16.4, the problem went away. - eric -- 04/12/2000 ericm | |||
| User Comments: |
hobbs added on 2001-08-29 02:28:17:
Logged In: YES user_id=72656 added to core-8-3-1-branch (for 8.3.4) and 8.4a4cvs. hobbs added on 2001-08-29 02:25:21: File Added - 10099: tkUnixWm833hobbs.diff hobbs added on 2001-08-29 02:25:20: Logged In: YES user_id=72656 Attached is the patch slightly massaged for inclusion to 8.3.3+. This leaves the WaitForEvent while loop intact. hobbs added on 2001-08-29 02:23:01: File Added - 10098: tkUnixWm833.diff hobbs added on 2001-08-29 02:23:00: Logged In: YES user_id=72656 While this is a problem with certain windows managers, Tim Baker provided a patch that seems to work around the trouble and still work on other wms. It may be that we end up ignoring the ConfigureNotify at times when we wanted it, but that doesn't seem to effect operation, whereas the raise delay is very user unfriendly. Attached is the patch from Baker. | |||
Attachments:
- tkUnixWm833hobbs.diff [download] added by hobbs on 2001-08-29 02:25:20. [details]
- tkUnixWm833.diff [download] added by hobbs on 2001-08-29 02:23:01. [details]
