discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus problem


From: UBoss UBoss
Subject: Re: Focus problem
Date: Tue, 21 Oct 2008 08:18:00 +0000

Hi
Window is on -10 level for reason it's a background window (keep at bottom) under gnustep-gui (back) 0.9.0 and WindowMaker 0.91 all works OK
I tested NSDesktopWindow level ... same as -10 level ... app lost focus, and side efect is that window is presented on all workspaces.
I need to do some more testing with xinerama (and dual monitor) in case that there could be more than one app with background window running on same computer. First monitor background window and some settings windows. Second monitor other app info windows, or second App with backround window. (it's ATC applications)

I also tested other window levels:
NSDesktopWindowLevel  --- App lost focus and side efect
negative window level (-1, -10 ....) --- App lost focus
0 window level (Normal) ---- looks good but miniwindows (info, setting ...)  hiden under background ... unusable
(1 ... 100) not tested need window on bottom.

tested under last stable GNustep ie make 2.0.6, base 1.16.3, gui, back 0.14.0
Solaris 10 (sparc, intel), WindowMaker 0.92.0

UBoss



On Sat, Oct 18, 2008 at 3:25 PM, Fred Kiefer <fredkiefer@gmx.de> wrote:
Could you please explain, why you are using an explicit value of -10 for
the window level? GNUstep doesn't give any guarantees about these
values. For a pour GNUstep application it would be best to use
NSDesktopWindowLevel, a GNUstep extension to the offical Cocoa windows
levels. I can see the point of arbitrary integers as window levels and
even have some ideas for implementing them, but currently only the
predefined constants are supported in GNUstep. (Don't know about
WindowMaker)

Fred

UBoss UBoss wrote:
> 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
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]