mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-25 00:40:55 +00:00
pply fix from Doug Simons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29062 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b92741ef87
commit
0aaa13fc2b
2 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
|
2009-11-19 Doug Simons
|
||||||
|
|
||||||
|
* Source/x11/XGServerWindow.m:
|
||||||
|
Make sure we return current window bounds.
|
||||||
|
|
||||||
2009-11-16 Riccardo Mottola <rmottola@users.sf.net>
|
2009-11-16 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
|
||||||
* Source\win32\WIN32Server.m: Remove left-over call to a mouse down event in a mouse-up
|
* Source\win32\WIN32Server.m: Remove left-over call to a mouse down
|
||||||
|
event in a mouse-up
|
||||||
|
|
||||||
2009-11-10 Richard Frith-Macdonald <rfm@gnu.org>
|
2009-11-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -3132,12 +3132,20 @@ static BOOL didCreatePixmaps;
|
||||||
gswindow_device_t *window;
|
gswindow_device_t *window;
|
||||||
int screenHeight;
|
int screenHeight;
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
|
int x, y;
|
||||||
|
unsigned int width, height;
|
||||||
|
|
||||||
window = WINDOW_WITH_TAG(win);
|
window = WINDOW_WITH_TAG(win);
|
||||||
if (!window)
|
if (!window)
|
||||||
return NSZeroRect;
|
return NSZeroRect;
|
||||||
|
|
||||||
NSDebugLLog(@"XGTrace", @"DPScurrentwindowbounds: %d", win);
|
NSDebugLLog(@"XGTrace", @"DPScurrentwindowbounds: %d", win);
|
||||||
|
|
||||||
|
// get the current xframe of the window
|
||||||
|
XGetGeometry(dpy, window->ident, &window->root,
|
||||||
|
&x, &y, &width, &height, &window->border, &window->depth);
|
||||||
|
window->xframe = NSMakeRect(x, y, width, height);
|
||||||
|
|
||||||
screenHeight = DisplayHeight(dpy, window->screen);
|
screenHeight = DisplayHeight(dpy, window->screen);
|
||||||
rect = window->xframe;
|
rect = window->xframe;
|
||||||
rect.origin.y = screenHeight - NSMaxY(window->xframe);
|
rect.origin.y = screenHeight - NSMaxY(window->xframe);
|
||||||
|
|
Loading…
Reference in a new issue