Commit graph

774 commits

Author SHA1 Message Date
Eric Wasylishen
b7ff3b2973 * Headers/win32/WIN32Server.h:
* Source/win32/WIN32Server.m:
* Source/win32/w32_movesize.m:
Fix a rather serious error where the extra window data was allocated
in two places (allocated with objc_malloc in the WM_CREATE handler,
and also allocated by Windows using the cbWndExtra field of the window
class structure). Sometimes the window level was accessed from one
memory area and sometimes from the other.
	
This is a quick fix that leaves the level and ordered properties
in the cbWndExtra area, and the rest is left in the WIN_INTERN
structure. 

This fixes the problem where window ordering was broken when running
apps in gdb.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31198 72102866-910b-0410-8b05-ffd578937521
2010-08-25 04:20:45 +00:00
Eric Wasylishen
d963ba552d Source/win32/WIN32Server.m (-setmaxsize::): Remove the maximize box when a maximum size is set on a window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31197 72102866-910b-0410-8b05-ffd578937521
2010-08-24 23:20:01 +00:00
Fred Kiefer
b693e927c6 For XFT Also request spacing information.
Patch by Derek Fawcus <dfawcus@employees.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31109 72102866-910b-0410-8b05-ffd578937521
2010-08-10 19:21:31 +00:00
Eric Wasylishen
a2716081f5 back/win32:
Only look at NSUtilityWindowMask to decide whether to use a thin-
style title bar (WS_EX_TOOLWINDOW).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31080 72102866-910b-0410-8b05-ffd578937521
2010-08-04 04:57:04 +00:00
Fred Kiefer
96c82d4518 Fix for bug #30140. The code was not converting the rectangle for
pattern drawing into device space.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31044 72102866-910b-0410-8b05-ffd578937521
2010-07-28 09:11:04 +00:00
Fred Kiefer
5d8d6e9138 * Source/win32/WIN32Server.m,
* Source/x11/XGServerEvent.m: Use NSDeleteCharacter instead of
        NSBackSpaceCharacter for the backspace key. This is what Cocoa
and
        OpenStep have been doing all the time.
        Also use NSBackTabCharacter on X11 when XK_ISO_Left_Tab is
        pressed, but don't convert shift-tab into NSBackTabCharacter.
        Patch by Derek Fawcus <dfawcus@employees.org>.


M    ChangeLog
M    Source/win32/WIN32Server.m
M    Source/x11/XGServerEvent.m


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31034 72102866-910b-0410-8b05-ffd578937521
2010-07-26 12:46:35 +00:00
Eric Wasylishen
8a96326e26 * Source/win32/WIN32Server.m:
Fix accidental integer division intended to be float division when
setting the timestamp on events. This was causing all timestamps
to be rounded to the nearest second.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31031 72102866-910b-0410-8b05-ffd578937521
2010-07-26 01:55:24 +00:00
Eric Wasylishen
440de8d9b2 * Source/win32/w32_GLContext.m:
* Source/x11/XGGLContext.m:
Apply fix for bug 29705: OpenGL subwindow positioning error
(OpenGL subwindow position was incorrectly calculated when
the window content view was flipped)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31029 72102866-910b-0410-8b05-ffd578937521
2010-07-26 01:41:55 +00:00
Fred Kiefer
0b249e778b Submit X11 shift key handling patch by Derek Fawcus
<dfawcus@employees.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31025 72102866-910b-0410-8b05-ffd578937521
2010-07-25 19:39:18 +00:00
Eric Wasylishen
f336cf20af back/win32: When ordering out a window, use the SWP_NOACTIVATE flag on SetWindowPos
so Windows doesn't activate/deactivate any windows when hiding a window.
  
This fixes the bug where when a tooltip disappeared, it would deactivate
the window the tooltip was over.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31024 72102866-910b-0410-8b05-ffd578937521
2010-07-25 07:35:42 +00:00
Eric Wasylishen
a27ce98ff1 back/win32: Fix for bug #29709: Windows: Maximize button in a window title bar is always grayed out
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30933 72102866-910b-0410-8b05-ffd578937521
2010-07-07 06:00:51 +00:00
Eric Wasylishen
6ebad82029 back/win32: Tweak the conditions for incrementing the clickCount when handling mouse clicks: (i.e. double click detection)
- Require a click to be within a distance (retrieved from Windows)
of the last click to count (previously there was no proximity check)
- Allow clicks separated by the Windows double click time interval
to count (e.g. if the Windows double click time interval is n,
clicking at times 0, n, 2n, 3n would produce events with click counts
1, 2, 3, and 4. This matches OS X behaviour. Previously, all clicks
had to be within the windows double click time interval to count as
one group.)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30932 72102866-910b-0410-8b05-ffd578937521
2010-07-07 05:49:13 +00:00
Quentin Mathe
e67f20d28b Small correction of alpha blending related comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30831 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:28:13 +00:00
Quentin Mathe
18f70010bf Fixed Windows backend issues introduced with r30523 where images are drawn at
the wrong location by -[NSImage drawXXX] methods.

See bug report #30069


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30829 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:18:56 +00:00
Fred Kiefer
7a8c2adea4 * Source/cairo/CairoGState.m
(-compositeGState:fromRect:toPoint:op:fraction:): Move the usage
of _ct and source->_ct after the check whether they are set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30588 72102866-910b-0410-8b05-ffd578937521
2010-06-06 19:56:35 +00:00
Quentin Mathe
b53fe57e7c Fixed many drawing issues (many ones being related to the flipping).
See bug report #27782

In particular, fixed -[NSImage drawXXX] and -[NSImage composite/dissolveXXX] 
methods to work exactly as Cocoa when the Cairo backend is used.
Added a new draw operator (in addition to composite) to the backend. Cairo is 
the only backend that implements it for now.
Eliminated as many flipping checks as possible.

Warning: Untested with the winlib backend. 
You must update, recompile and install both Back and Gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30523 72102866-910b-0410-8b05-ffd578937521
2010-06-01 11:04:36 +00:00
Riccardo Mottola
1d0aa595c9 added missing imports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30451 72102866-910b-0410-8b05-ffd578937521
2010-05-24 22:42:50 +00:00
Gregory John Casamento
c79a73ea90 Reactivate the theme when the *Windows* theme is changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30402 72102866-910b-0410-8b05-ffd578937521
2010-05-16 21:32:56 +00:00
Fred Kiefer
20644527ac Make cairo the default backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30359 72102866-910b-0410-8b05-ffd578937521
2010-05-11 16:40:01 +00:00
Adam Fedor
f9d67ed76d Fix release documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30353 72102866-910b-0410-8b05-ffd578937521
2010-05-10 20:34:56 +00:00
Adam Fedor
d68a81f438 Version 0.19.0 Unstable release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30340 72102866-910b-0410-8b05-ffd578937521
2010-05-10 03:43:08 +00:00
Adam Fedor
03b4962adb Version 0.18.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30336 72102866-910b-0410-8b05-ffd578937521
2010-05-10 03:31:29 +00:00
Doug Simons
cca4dec810 Fix problem with display location for some composited images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30228 72102866-910b-0410-8b05-ffd578937521
2010-04-23 23:01:34 +00:00
Doug Simons
7d826fbd3c fix problems with key window status on Windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30207 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:52:22 +00:00
Eric Wasylishen
287c0049dd winlib/WIN32FontInfo.m: Use DEFAULT_QUALITY for fonts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30188 72102866-910b-0410-8b05-ffd578937521
2010-04-19 01:23:30 +00:00
Eric Wasylishen
a5b5c4f6b8 Use default icon size when reading ico file for windows app icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30170 72102866-910b-0410-8b05-ffd578937521
2010-04-15 19:02:20 +00:00
Jonathan Gillaspie
8c4d1d251e * Source/win32/WIN32Server.m: Have non-key, non-main windows
that order front not become active.  Also don't bring windows
  that are ordering out to the foreground first.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30142 72102866-910b-0410-8b05-ffd578937521
2010-04-13 19:11:40 +00:00
Fred Kiefer
3a58a7e30b Add more missing imports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30043 72102866-910b-0410-8b05-ffd578937521
2010-03-26 07:51:34 +00:00
Riccardo Mottola
65c8dbe1fd added missing imports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30042 72102866-910b-0410-8b05-ffd578937521
2010-03-26 00:11:51 +00:00
Riccardo Mottola
6b298f79b6 include -> import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30038 72102866-910b-0410-8b05-ffd578937521
2010-03-25 22:19:44 +00:00
Riccardo Mottola
28b5c69f02 import NSValue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30037 72102866-910b-0410-8b05-ffd578937521
2010-03-25 21:52:33 +00:00
Doug Simons
c4226a2a14 Include NSDebug.h for definition of NSDebugLLog()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30032 72102866-910b-0410-8b05-ffd578937521
2010-03-24 22:18:28 +00:00
Doug Simons
208545437d Ignore duplicate mouse down events generated by first click in a window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30031 72102866-910b-0410-8b05-ffd578937521
2010-03-24 22:12:08 +00:00
Eric Wasylishen
18d408be09 back/win32: update windows while resizing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30008 72102866-910b-0410-8b05-ffd578937521
2010-03-20 06:42:17 +00:00
Eric Wasylishen
370945d7af back/win32: record deltaX and deltaY for mouse move/drag events, matching OS X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30007 72102866-910b-0410-8b05-ffd578937521
2010-03-20 05:13:28 +00:00
Eric Wasylishen
9894eb2943 back/win32: fix handling of alt key
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30006 72102866-910b-0410-8b05-ffd578937521
2010-03-20 02:18:18 +00:00
Eric Wasylishen
aa8d797eb6 back/win32: fix for mouse/keyboard events on NSOpenGLView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29957 72102866-910b-0410-8b05-ffd578937521
2010-03-15 07:19:22 +00:00
Eric Wasylishen
1561ba0aec back/win32: Fix for multiple NSOpenGLView's
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29940 72102866-910b-0410-8b05-ffd578937521
2010-03-14 06:50:31 +00:00
Eric Wasylishen
36260d2295 back/win32: horizontal mousewheel support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29933 72102866-910b-0410-8b05-ffd578937521
2010-03-13 21:38:23 +00:00
Eric Wasylishen
1e8806424e back/win32: fix mousewheel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29932 72102866-910b-0410-8b05-ffd578937521
2010-03-13 21:00:02 +00:00
Fred Kiefer
2d801f3700 Small bug fix (mostly to avoid compiler warning) by Anibal Rindisbacher
<anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29922 72102866-910b-0410-8b05-ffd578937521
2010-03-13 13:09:59 +00:00
Doug Simons
c3004129ed capture the mouse to get mouse moved events outside of window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29912 72102866-910b-0410-8b05-ffd578937521
2010-03-12 21:29:37 +00:00
Doug Simons
c3cdc8ebba Prevent generating mouseMoved events when the mouse hasn't moved
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29905 72102866-910b-0410-8b05-ffd578937521
2010-03-11 22:44:53 +00:00
Doug Simons
9978707706 removed extraneous 'u' that got in by mistake
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29884 72102866-910b-0410-8b05-ffd578937521
2010-03-08 19:34:31 +00:00
Doug Simons
908e8b663e When the shift key is down, charactersIgnoringModifiers should be uppercase
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29883 72102866-910b-0410-8b05-ffd578937521
2010-03-08 17:54:00 +00:00
Fred Kiefer
5253105797 * Source/cairo/CairoGState.m: Only use calls for
cairo_pattern_set_extend() on cairo > 1.6.0.
Patch suggested by Eric Wasylishen <ewasylishen@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29868 72102866-910b-0410-8b05-ffd578937521
2010-03-07 21:40:36 +00:00
Richard Frith-MacDonald
18ab944a93 update to avoid obsolete function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29844 72102866-910b-0410-8b05-ffd578937521
2010-03-05 06:52:53 +00:00
Gregory John Casamento
588ae69c45 Changes to prevent inconsistent main/key state and move alphablend to a separate function call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29722 72102866-910b-0410-8b05-ffd578937521
2010-02-24 21:50:20 +00:00
Fred Kiefer
92fdccd8d3 Adjust to the CGFloat change for NSFont
and NSAffineTransform done in base and gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29689 72102866-910b-0410-8b05-ffd578937521
2010-02-20 16:33:30 +00:00
Nicola Pero
959b852c71 Minor tidyups to back makefiles; removed references to GNUmakefile.local (totally obsolete) and minor fix for uninstalling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29558 72102866-910b-0410-8b05-ffd578937521
2010-02-11 18:28:58 +00:00