Tk Source Code

View Ticket
Login
Ticket UUID: 1641536
Title: raise does nothing on x86-64 linux
Type: Bug Version: obsolete: 8.4.14
Submitter: jaspert Created on: 2007-01-22 11:41:16
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-05-22 09:20:05
Resolution: None Closed By: sf-robot
    Closed on: 2007-05-22 02:20:05
Description:
If I create a few top level windows and place them so they overlap each other, typing the 'raise' command to the console does not affect their stacking order. However, 'lower' does work although the lowered window goes right to the bottom of the stack even if a 2nd arg is given. This is on KDE; if I swicth to Gnome neither raise or lower do anything.

Platform is a Macbook Mk2 running Fedora Core 6 for x86-64. Problem verified with ActiveState's TclTk 8.4.14 and with Fedora's own distributions of TclTk 8.4.13 for x86-64 and i386.

The problem does *not* occur on an i386 running FC5 with TclTk 8.4.13
User Comments: sf-robot added on 2007-05-22 09:20:05:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

jenglish added on 2007-05-08 04:00:45:
Logged In: YES 
user_id=68433
Originator: NO

Yep, looks like this is related to focus-stealing prevention.  Recent versions of metacity (Gnome WM) no longer honor client requests to raise or lower their own windows (it does, however, now flash the taskbar to let the user know that the window wants to be shown).

Relevant details here: <URL: http://bugzilla.gnome.org/show_bug.cgi?id=305882 >.  Gnome bug #166395 is also related.  Haven't looked into kwin, but I suspect that it has made similar policy decisions.  (The rationale for this policy is that the user should be in control of window stacking order, focus, etc., not the application.)

jenglish added on 2007-01-22 22:35:53:
Logged In: YES 
user_id=68433
Originator: NO

This is probably due to the new(ish) "focus stealing prevention" policies in the EWMH.
I've been meaning to investigate this for a while, but haven't been able to replicate the problem.

dkf added on 2007-01-22 20:17:14:
Logged In: YES 
user_id=79902
Originator: NO

Response to [raise] and [lower] determined entirely by window manager policy; nothing we can do to change that.