[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Focus problem
From: |
UBoss UBoss |
Subject: |
Focus problem |
Date: |
Thu, 16 Oct 2008 13:57:01 +0000 |
Hi
I have a problem wiht app lost focus when window has negative level set.
for example:
have a whole screen window on level -10
when click in menu to show submenu ... ALL OK
when click in menu again to show diferent submenu or to hide showed submenu ... APP LOST FOCUS (focus went to xterm)
if the window is on normal level (0) ALL works OK.
if there is another app window on normal level viewed the situation is follows
focus on main window level (-10)
click in menu ... submenu shows
click in menu ... submenu hides ... focus went to app window on normal level instead of last focused window on negative level.
Now after searching in back and NSWindow I'm lost. I need the main window on negative level to be keep at botom but don't know how to set it from app code.
thanks for your help.
PS:
here is the piece of debug messages hope this helps
2008-10-16 15:35:35.320 AWS[24309] 60819608 ClientMessage
2008-10-16 15:35:35.320 AWS[24309] WM Protocol - WM_TAKE_FOCUS
2008-10-16 15:35:35.320 AWS[24309] take focus:20 (current=6 key=6) ------ 20 is menu 6 is main win on level -10
2008-10-16 15:35:35.320 AWS[24309] Ignoring window focus request
2008-10-16 15:35:35.321 AWS[24309] 60819608 PropertyNotify - '_NET_WM_DESKTOP'
2008-10-16 15:35:35.321 AWS[24309] 60819608 PropertyNotify - '_NET_WM_STATE'
2008-10-16 15:35:35.321 AWS[24309] 60819608 PropertyNotify - 'WM_STATE'
2008-10-16 15:35:35.321 AWS[24309] 60819608 PropertyNotify - '_NET_WM_STATE'
2008-10-16 15:35:35.375 AWS[24309] 60819218 ButtonRelease ----- looks like menu button release
2008-10-16 15:35:35.375 AWS[24309] stopPeriodicEvents
2008-10-16 15:35:35.375 AWS[24309] stopPeriodicEvents
2008-10-16 15:35:35.487 AWS[24309] 60819218 ButtonPress: xEvent.xbutton.time 105656127 timeOfLastClick 105655927
2008-10-16 15:35:35.487 AWS[24309] Send NSEvent type: 1 to window 8
2008-10-16 15:35:35.488 AWS[24309] startPeriodicEventsAfterDelay: withPeriod:
2008-10-16 15:35:35.575 AWS[24309] 60819218 ButtonRelease
2008-10-16 15:35:35.576 AWS[24309] stopPeriodicEvents
2008-10-16 15:35:35.576 AWS[24309] DPSorderwindow: 2 : -1 : 20
2008-10-16 15:35:35.576 AWS[24309] DPSorderwindow: 2 : -1 : 20 LEVEL 3
2008-10-16 15:35:35.576 AWS[24309] DPSsetwindowlevel: 3 : 20
2008-10-16 15:35:35.576 AWS[24309] stopPeriodicEvents
2008-10-16 15:35:35.579 AWS[24309] 60819608 UnmapNotify
2008-10-16 15:35:35.579 AWS[24309] NoExpose
2008-10-16 15:35:35.580 AWS[24309] 60819143 Expose
2008-10-16 15:35:35.580 AWS[24309] Expose frame 210 49 26 162
2008-10-16 15:35:35.582 AWS[24309] 60819608 PropertyNotify - 'WM_STATE'
2008-10-16 15:35:35.582 AWS[24309] 60819608 ReparentNotify - offset 210 49
2008-10-16 15:35:35.582 AWS[24309] 60819608 PropertyNotify - '_NET_WM_DESKTOP'
2008-10-16 15:35:35.582 AWS[24309] 60819608 PropertyNotify - '_NET_WM_STATE'
2008-10-16 15:35:35.582 AWS[24309] 60819143 FocusOut
2008-10-16 15:35:35.582 AWS[24309] 60819143 20 44040194 2FocusOut
2008-10-16 15:35:35.582 AWS[24309] FW not none not PRoot 44040194
2008-10-16 15:35:35.582 AWS[24309] NSWin (nil)
2008-10-16 15:35:35.582 AWS[24309] Focus went to 0 (xwin 44040194)
2008-10-16 15:35:35.583 AWS[24309] DPSsetinputstate: 2 : 6
2008-10-16 15:35:35.583 AWS[24309] DPSsetinputstate: 1 : 6
- Focus problem,
UBoss UBoss <=