Commit graph

802 commits

Author SHA1 Message Date
Fred Kiefer
c03b2d3a3b Protect the name id.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33065 72102866-910b-0410-8b05-ffd578937521
2011-05-19 07:37:29 +00:00
Eric Wasylishen
5ece9220eb * Source/x11/XGServerWindow.m:
* Source/x11/XGServer.m:
* Source/x11/XGServerEvent.m:
* Headers/x11/XGGeneric.h:
* Headers/x11/XGServerWindow.h:
* Headers/x11/XGServer.h:
Implement the _NET_WM_SYNC_REQUEST protocol described here:
http://standards.freedesktop.org/wm-spec/1.3/ar01s06.html

This is supposed to make window resizing smoother when dragging
a resize handle provided by the window manager, by waiting to
change the window manager's frame until the GNUstep window is
finished repainting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33045 72102866-910b-0410-8b05-ffd578937521
2011-05-15 08:37:44 +00:00
Eric Wasylishen
8b0d34990e * Undo the previous change and try a different approach..
just cache the character set in CairoFaceInfo, but load them
as needed as we were doing before.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32987 72102866-910b-0410-8b05-ffd578937521
2011-05-05 20:05:13 +00:00
Eric Wasylishen
016af1f41c * Source/cairo/CairoFontEnumerator.m:
* Source/cairo/CairoFaceInfo (-characterSet): Remove the call to
FcFontMatch in -characterSet which was a big performace
bottleneck.
Instead load the character set data when enumerating all fonts in
CairoFontEnumerator.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32986 72102866-910b-0410-8b05-ffd578937521
2011-05-05 19:18:43 +00:00
Eric Wasylishen
575901b00d back: c89 compat.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32882 72102866-910b-0410-8b05-ffd578937521
2011-04-17 23:08:30 +00:00
Eric Wasylishen
2c49f918f2 back: forgot to update ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32881 72102866-910b-0410-8b05-ffd578937521
2011-04-17 22:55:49 +00:00
Eric Wasylishen
7d4e86e5d3 back: Copy the -Wdeclaration-after-statement test from base. Also adds -Wall.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32878 72102866-910b-0410-8b05-ffd578937521
2011-04-17 21:16:12 +00:00
Eric Wasylishen
88048d141c back/cairo: use Fontconfig for descriptor matching
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32864 72102866-910b-0410-8b05-ffd578937521
2011-04-14 23:14:38 +00:00
Adam Fedor
ad1b6f8e1b Bump version to unstable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32853 72102866-910b-0410-8b05-ffd578937521
2011-04-14 03:04:54 +00:00
Adam Fedor
63a8fa6443 Version 0.20.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32849 72102866-910b-0410-8b05-ffd578937521
2011-04-14 02:54:22 +00:00
Fred Kiefer
0f82f1a833 Fixes warnings reported by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32823 72102866-910b-0410-8b05-ffd578937521
2011-04-09 17:10:49 +00:00
Eric Wasylishen
dc80ca3aa0 back: implement coveredCharacterSet for CairoFontInfo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32716 72102866-910b-0410-8b05-ffd578937521
2011-03-28 04:19:41 +00:00
Fred Kiefer
3057ab99b9 * Tools/xpbs.m (-pasteboard:provideDataForType:, -availableTypes)
(-xSelectionNotify:): Better handling of plain text data types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32694 72102866-910b-0410-8b05-ffd578937521
2011-03-23 19:44:46 +00:00
Fred Kiefer
80eab30de7 Extract the bitmap conversion into a local function and use it througout the file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32643 72102866-910b-0410-8b05-ffd578937521
2011-03-18 09:29:01 +00:00
Eric Wasylishen
a7cb5ca55e Check for the X extention libraries (Xext, Xt, Xmu) using pkg-config if they aren't found with the default test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32557 72102866-910b-0410-8b05-ffd578937521
2011-03-13 21:18:20 +00:00
Fred Kiefer
8913452ffc Change the way the image for the cursor gets passed on to the backend.
The old way could only work for 8 bit data.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32492 72102866-910b-0410-8b05-ffd578937521
2011-03-07 19:45:20 +00:00
Wolfgang Lux
2e9160fd9e Fix race condition where gpbs could time out waiting for a property
change notification from the X server, which is already present in the
X event queue.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32457 72102866-910b-0410-8b05-ffd578937521
2011-03-05 14:40:22 +00:00
Fred Kiefer
5125141980 Implement the ne cursor backend methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32180 72102866-910b-0410-8b05-ffd578937521
2011-02-15 22:54:51 +00:00
Wolfgang Lux
ed986c30f8 Omit app icons and mini windows from the pager and task bar even when
they are displayed at normal window level.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32166 72102866-910b-0410-8b05-ffd578937521
2011-02-14 22:40:21 +00:00
Fred Kiefer
544ee725a7 Remove a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31726 72102866-910b-0410-8b05-ffd578937521
2010-12-11 14:49:54 +00:00
Fred Kiefer
5ef996a240 Better error detection in Windows image display.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31725 72102866-910b-0410-8b05-ffd578937521
2010-12-11 14:28:44 +00:00
Jonathan Gillaspie
15f3adb397 * Source/win32/WIN32Server.m: Added better logging on Window create and destroy errors.
Added a secondary call to get current mouse position if the first call fails.	
* Source/win32/w32_text_focus.m: Cast parameter to appropriate (HWND) type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31718 72102866-910b-0410-8b05-ffd578937521
2010-12-08 22:59:05 +00:00
Eric Wasylishen
282a590ad5 core/back: replace objc_{malloc/free} with malloc/free
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31629 72102866-910b-0410-8b05-ffd578937521
2010-11-18 20:28:15 +00:00
Fred Kiefer
82789ff26e Fixed problems found by sttic code analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31326 72102866-910b-0410-8b05-ffd578937521
2010-09-11 14:00:35 +00:00
Eric Wasylishen
1c986457b5 back/win32: revert r31206
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31324 72102866-910b-0410-8b05-ffd578937521
2010-09-10 22:45:12 +00:00
Eric Wasylishen
d41e797bfd * Source/win32/WIN32Server.m: Only show taskbar buttons for windows
which satisfy both:

- style mask isn't NSBorderlessWindowMask
- style mask don't have NSUtilityWindowMask set

Should fix bug 30911

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31212 72102866-910b-0410-8b05-ffd578937521
2010-08-30 22:00:09 +00:00
Eric Wasylishen
24eff104fa * Source/win32/w32_activate.m: Call -[NSApp deactivate] in response
to a WM_ACTIVEAPPP message reporting that the app lost focus.

This delivers NSApplicationWillResignActiveNotification
and NSApplicationDidResignActiveNotification, hides panels, etc.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31206 72102866-910b-0410-8b05-ffd578937521
2010-08-30 05:53:30 +00:00
Eric Wasylishen
bdc97710e0 * Source/win32/WIN32Server.m: Handle Page Down and Page Up keys,
as well as adding a few others.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31200 72102866-910b-0410-8b05-ffd578937521
2010-08-25 17:03:38 +00:00
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