mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:41:11 +00:00
Coordinate handling fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6213 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f73693c4d1
commit
8282e3dd5a
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Mar 08 13:15:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSWindow.m: Final (I hope) coordinate handling fixes to
|
||||
use proper frame coordinates and offsets now that support is in
|
||||
backend and WindowMaker bugs are fixed.
|
||||
|
||||
Wed Mar 08 07:44:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSText.m: Fixes by Fred Kiefer for rich text display.
|
||||
|
|
|
@ -2372,6 +2372,8 @@ resetCursorRectsForView(NSView *theView)
|
|||
case GSAppKitWindowMoved:
|
||||
frame.origin.x = (float)[theEvent data1];
|
||||
frame.origin.y = (float)[theEvent data2];
|
||||
NSDebugLLog(@"Moving", @"Move event: %d %@",
|
||||
window_num, NSStringFromPoint(frame.origin));
|
||||
if (autosave_name != nil)
|
||||
{
|
||||
[self saveFrameUsingName: autosave_name];
|
||||
|
@ -2390,6 +2392,8 @@ resetCursorRectsForView(NSView *theView)
|
|||
{
|
||||
NSRect rect = frame;
|
||||
|
||||
rect = [NSWindow contentRectForFrameRect: rect
|
||||
styleMask: style_mask];
|
||||
rect.origin = NSZeroPoint;
|
||||
[_wv setFrame: rect];
|
||||
[_wv setNeedsDisplay: YES];
|
||||
|
@ -2398,6 +2402,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
[nc postNotificationName: NSWindowDidResizeNotification
|
||||
object: self];
|
||||
break;
|
||||
|
||||
case GSAppKitWindowClose:
|
||||
[self performClose: NSApp];
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue