mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +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
05a574ac3b
commit
b751ba07f9
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>
|
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.
|
* Source/NSText.m: Fixes by Fred Kiefer for rich text display.
|
||||||
|
|
|
@ -2372,6 +2372,8 @@ resetCursorRectsForView(NSView *theView)
|
||||||
case GSAppKitWindowMoved:
|
case GSAppKitWindowMoved:
|
||||||
frame.origin.x = (float)[theEvent data1];
|
frame.origin.x = (float)[theEvent data1];
|
||||||
frame.origin.y = (float)[theEvent data2];
|
frame.origin.y = (float)[theEvent data2];
|
||||||
|
NSDebugLLog(@"Moving", @"Move event: %d %@",
|
||||||
|
window_num, NSStringFromPoint(frame.origin));
|
||||||
if (autosave_name != nil)
|
if (autosave_name != nil)
|
||||||
{
|
{
|
||||||
[self saveFrameUsingName: autosave_name];
|
[self saveFrameUsingName: autosave_name];
|
||||||
|
@ -2390,6 +2392,8 @@ resetCursorRectsForView(NSView *theView)
|
||||||
{
|
{
|
||||||
NSRect rect = frame;
|
NSRect rect = frame;
|
||||||
|
|
||||||
|
rect = [NSWindow contentRectForFrameRect: rect
|
||||||
|
styleMask: style_mask];
|
||||||
rect.origin = NSZeroPoint;
|
rect.origin = NSZeroPoint;
|
||||||
[_wv setFrame: rect];
|
[_wv setFrame: rect];
|
||||||
[_wv setNeedsDisplay: YES];
|
[_wv setNeedsDisplay: YES];
|
||||||
|
@ -2398,6 +2402,7 @@ resetCursorRectsForView(NSView *theView)
|
||||||
[nc postNotificationName: NSWindowDidResizeNotification
|
[nc postNotificationName: NSWindowDidResizeNotification
|
||||||
object: self];
|
object: self];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GSAppKitWindowClose:
|
case GSAppKitWindowClose:
|
||||||
[self performClose: NSApp];
|
[self performClose: NSApp];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue