mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
Add missing window caching for minimized check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
590c984fed
commit
90a62908d3
3 changed files with 38 additions and 23 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-08-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerWindow.m (-_ewmh_isMinimized:): Correct
|
||||
indentation.
|
||||
* Source/x11/XGServerEvent.m (-receivedEvent:type:extra:forMode:):
|
||||
For PropertyNotify cache the window first.
|
||||
|
||||
2008-07-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerWindow.m (-window::::): For EWMH window
|
||||
|
|
|
@ -1306,6 +1306,13 @@ static int check_modifier (XEvent *xEvent, KeySym key_sym)
|
|||
{
|
||||
if (xEvent.xproperty.atom == generic.netstates.net_wm_state_atom &&
|
||||
xEvent.xproperty.state == PropertyNewValue)
|
||||
{
|
||||
if (cWin == 0 || xEvent.xproperty.window != cWin->ident)
|
||||
{
|
||||
generic.cachedWindow
|
||||
= [XGServer _windowForXWindow: xEvent.xproperty.window];
|
||||
}
|
||||
if (cWin != 0)
|
||||
{
|
||||
/*
|
||||
* FIXME: we really should detect when the state changes from
|
||||
|
@ -1328,6 +1335,7 @@ static int check_modifier (XEvent *xEvent, KeySym key_sym)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
// a client successfully reparents a window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue