mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Update for window ordering fixes in gui
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2291618e83
commit
81dc2376f4
2 changed files with 25 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-01-10 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/x11/XGServerWindow.m ([XGServer -orderwindow:::]):
|
||||
When orderWin == 0, make sure the window does not go in front
|
||||
of the current key window.
|
||||
|
||||
2004-01-10 16:25 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/blit.m: Replace uses DI_16_B5G5R5A1 and DI_16_B5G6R5
|
||||
|
|
|
@ -1534,10 +1534,27 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
|
||||
NSDebugLLog(@"XGTrace", @"DPSorderwindow: %d : %d : %d",op,otherWin,winNum);
|
||||
level = window->win_attrs.window_level;
|
||||
if (otherWin != 0)
|
||||
if (otherWin > 0)
|
||||
{
|
||||
other = WINDOW_WITH_TAG(otherWin);
|
||||
level = other->win_attrs.window_level;
|
||||
if (other)
|
||||
level = other->win_attrs.window_level;
|
||||
}
|
||||
else if (otherWin == 0 && op == NSWindowAbove)
|
||||
{
|
||||
/* Don't let the window go in front of the current key/main window. */
|
||||
/* FIXME: Don't know how to get the current main window. */
|
||||
Window keywin;
|
||||
int revert, status;
|
||||
status = XGetInputFocus(dpy, &keywin, &revert);
|
||||
other = NULL;
|
||||
if (status == True)
|
||||
{
|
||||
/* Alloc a temporary window structure */
|
||||
other = GSAutoreleasedBuffer(sizeof(gswindow_device_t));
|
||||
other->ident = keywin;
|
||||
op = NSWindowBelow;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue