Eric Wasylishen
1858519713
* Source/cairo/CairoGState.m (-DPSstroke:): If the line width is
...
0, temporarily set it to 1 unit wide (in device space.) This
is an attempt at matching the behaviour of the setlinewidth
PostScript operator, which is supposed to interpret 0 as meaning
the thinnest line that the output device can draw.
Note that Quartz (and cairo) draw nothing with a line width of 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33739 72102866-910b-0410-8b05-ffd578937521
2011-08-15 19:23:49 +00:00
Eric Wasylishen
337ce46bba
* Source/win32/WIN32Server.m (-resolutionForScreen:):
...
Scale the result by 0.75 so the Windows default of 96 DPI is
mapped to the GNUstep default of 72 DPI. While this sounds wrong,
72 and 96 are just "virtual" DPI's; both mean 1 point = 1 pixel,
so it's actually the right thing to do.
* Source/x11/XGServerWindow.m (-resolutionForScreen:):
Comment out the implementation and just return 72 for now,
because I'm not sure if we can trust the value the X server
gives us.
NOTE: Currently -gui ignores these methods and only looks at the
GSScaleFactor user default. I'm going to make -gui use the server
values now, because it's safe to do so on Windows (the system
DPI is set by the user, and affects all applications.)
NOTE: We might consider refactoring these methods to be called
scaleFactorForScreen: to make it clearer what they do.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33658 72102866-910b-0410-8b05-ffd578937521
2011-07-30 20:39:10 +00:00
Eric Wasylishen
883c8cbd61
* Source/winlib/WIN32GState.m (GSCreateBitmap): Add support for
...
(8 bit-greyscale, 8-bit alpha) format. This fixes various
default images not showing (menu arrows, scroller arrows, etc.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33582 72102866-910b-0410-8b05-ffd578937521
2011-07-18 18:13:47 +00:00
Eric Wasylishen
726d4a0801
* Source/x11/XGServerWindow.m: Add Xcursor support (for RGBA
...
imagecursor support.) configure test is still TODO, so it isn't
compiled in at the moment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33563 72102866-910b-0410-8b05-ffd578937521
2011-07-15 19:05:44 +00:00
Eric Wasylishen
1554a718dc
* Headers/x11/XGGeneric.h
...
* Source/x11/XGServerWindow.m: Add new netwm window state atoms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33549 72102866-910b-0410-8b05-ffd578937521
2011-07-14 19:09:17 +00:00
Eric Wasylishen
f3149ce164
* Headers/cairo/CairoGState.h:
...
* Source/cairo/CairoGState.m: Remove most of the rounding code and
implementation of DPSstrokeadjust.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33492 72102866-910b-0410-8b05-ffd578937521
2011-07-08 21:02:06 +00:00
Eric Wasylishen
3c80cf5c92
* Source/cairo/XGCairoSurface.m (-contentsOfScreen:inRect:):
...
Use the passed rect properly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33444 72102866-910b-0410-8b05-ffd578937521
2011-07-03 23:59:35 +00:00
Eric Wasylishen
9bc09976ee
* Source/cairo/XGCairoSurface.m: Implementation of
...
-[GSDisplayServer contentsOfScreen:inRect:] for x11/cairo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33443 72102866-910b-0410-8b05-ffd578937521
2011-07-03 23:45:22 +00:00
Fred Kiefer
55bc606c48
* Headers/x11/XGServer.h: Add #include of config.h.
...
* Source/art/path.m (-DPSrectfill::::),
* Source/xlib/XGGState.m (-DPSrectfill::::): Change name of local
variable to avoid compiler warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33365 72102866-910b-0410-8b05-ffd578937521
2011-06-22 22:09:41 +00:00
Fred Kiefer
084e5ade90
Revert last change as gui is fixed now.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33305 72102866-910b-0410-8b05-ffd578937521
2011-06-14 22:27:58 +00:00
Fred Kiefer
5a950060d0
* Source/cairo/CairoContext.m (-supportsDrawGState): Delegate to
...
gstate.
* Headers/cairo/CairoGState.h (-supportsDrawGState): Declare this method.
* Source/cairo/CairoGState.m (-supportsDrawGState): Only allow the
faster drawing operation when the clip can be represented as a
list of rectangles.
* Source/cairo/CairoGState.m (-copyWithZone:): Always free the
clip rectangle list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33289 72102866-910b-0410-8b05-ffd578937521
2011-06-13 12:34:52 +00:00
Wolfgang Lux
938f716f55
Enlarge protocol array to make space for the _NET_WM_SYNC_REQUEST
...
protocol atom.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33224 72102866-910b-0410-8b05-ffd578937521
2011-06-01 20:56:27 +00:00
David Chisnall
7d3d3852c9
Call NSZoneFree() on pointer allocated with NSAllocateCollectable(), not free(). This is a no-op in GC mode, and will free the memory in non-GC mode.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33148 72102866-910b-0410-8b05-ffd578937521
2011-05-27 13:53:57 +00:00
Eric Wasylishen
07638f13fc
* Source/winlib/WIN32GState.m:
...
* Source/art/ARTGState.m:
* Source/cairo/CairoGState.m:
* Source/xlib/XGGState.m:
* Source/gsc/GSContext.m:
* Source/gsc/GSGState.m:
* Headers/gsc/GSGStateOps.h:
Add a new interface, GSShowGlyphsWithAdvances, which replaces
GSShowGlyphs as the primitive text drawing method.
None of the backends implement it properly yet; I simply renamed
the existing -GSShowGlyphs:: methods to -GSShowGlyphsWithAdvances:::,
so they currently ignore the glyph advances.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33121 72102866-910b-0410-8b05-ffd578937521
2011-05-26 03:48:58 +00:00
David Chisnall
1b26d9be44
Use NSAllocateCollectable() for some things that store pointers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33106 72102866-910b-0410-8b05-ffd578937521
2011-05-24 16:37:26 +00:00
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
8545154f67
back/cairo: CairoFontEnumerator.m: Replace -handleKey:selector:valueClass: and -handleKey:selector: methods with macros.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32880 72102866-910b-0410-8b05-ffd578937521
2011-04-17 22:29:18 +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
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
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
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
Richard Frith-MacDonald
8343fe8a64
avoid non-standard method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32489 72102866-910b-0410-8b05-ffd578937521
2011-03-07 17:48:05 +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
f85e6a7f1d
Ooops, a closing parenthesis got lost in the last commit :-(
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@32167 72102866-910b-0410-8b05-ffd578937521
2011-02-14 22:44:55 +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
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
Eric Wasylishen
39c9297595
Handle horizontal scrolling in X11
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29532 72102866-910b-0410-8b05-ffd578937521
2010-02-10 07:36:36 +00:00
Gregory John Casamento
77565aaad0
* Headers/win32/WIN32Server.h: Remove HOTKEY method.
...
* Source/win32/w32_general.m: Remove HOTKEY method.
* Source/win32/WIN32Server.m: Remove call to HOTKEY method. Added
function "mask_for_keystate(..)" to implement modifier mappings
on Windows. Also changed process_key_event to use the new function
and changed the call to ToUnicode to use a blank array instead of
modifying the existing keyState array since this was returning the
characters with the modifiers still applied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29498 72102866-910b-0410-8b05-ffd578937521
2010-02-07 08:37:04 +00:00
Gregory John Casamento
3c9e989f25
* Headers/win32/WIN32Server.h: Added declaration for decodeWM_HOTKEY:...
...
* Source/win32/WIN32Server.m: Added call to method decodeWM_HOTKEY:...
* Source/win32/w32_general.m: Added method decodeWM_HOTKEY:...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29490 72102866-910b-0410-8b05-ffd578937521
2010-02-05 21:32:42 +00:00
Fred Kiefer
2f9772ccde
Solve the window focus bug by no longer activating the window on each
...
resize.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29414 72102866-910b-0410-8b05-ffd578937521
2010-01-26 19:05:35 +00:00
Fred Kiefer
99a4001565
Merge the two checks for xshm in XWindowBuffer.
...
Better check for unicode encoding in art fonts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29410 72102866-910b-0410-8b05-ffd578937521
2010-01-26 09:21:01 +00:00
Gregory John Casamento
817a5d654f
* Source/win32/w32_create.m: (-decodeWM_CREATEParams:::) add
...
code to load and set the HICON into the window. Currently,
an .ico file with the same name as the image specified in
NSIcon or CFBundleIconName needs to be provided in the
resources.
NOTE: An enhancement to generate this from the app icon will
follow shortly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29396 72102866-910b-0410-8b05-ffd578937521
2010-01-25 09:14:55 +00:00
Fred Kiefer
2a93b165fb
Don't give up on xshm when pixmaps aren't supported.
...
Based on proposal by Derk Fawcus <dfawcus+lists-gnustep-dev@employees.org>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29359 72102866-910b-0410-8b05-ffd578937521
2010-01-22 17:18:55 +00:00
Wolfgang Lux
4311e19de6
Avoid unnecessary runtime check in the fix for #28590 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29358 72102866-910b-0410-8b05-ffd578937521
2010-01-22 11:47:06 +00:00
Wolfgang Lux
4ea7b58019
Fix bug #28590 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29357 72102866-910b-0410-8b05-ffd578937521
2010-01-22 08:16:50 +00:00
Gregory John Casamento
89e0508bbb
2010-01-21 15:45-EST Riccardo Mottola <rmottola@users.sf.net>
...
Committed by: Gregory John Casamento <greg.casamento@gmail.com>
* Source/win32/w32_text_focus.m: Correction for extra event which
was causing main/key windows to get out of sync in the backend and
gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29349 72102866-910b-0410-8b05-ffd578937521
2010-01-21 20:43:46 +00:00
Wolfgang Lux
b4aead1b19
Revise detection of window miniaturization and deminiaturization based
...
on the ICCCM WM_STATE property and use _NET_WM_STATE only to avoid
generating bogus miniaturize events when using an emwh compliant
window manager. This makes the code more portable and allows
generating reliable window deminiaturize events.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29283 72102866-910b-0410-8b05-ffd578937521
2010-01-14 22:27:03 +00:00
Gregory John Casamento
19150c94d0
* Headers/win32/WIN32Server.h: Added decodeWM_MOUSEACTIVATE:..
...
* Source/win32/w32_general.m: Added call to decodeWM_COMMAND:
to -[GSTheme processCommand:] the theme callback which handles
native menus,
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29279 72102866-910b-0410-8b05-ffd578937521
2010-01-14 10:40:29 +00:00
Riccardo Mottola
a520fd608c
generate the window leave event only for WM_INACTIVE
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29256 72102866-910b-0410-8b05-ffd578937521
2010-01-10 18:34:30 +00:00
Riccardo Mottola
f126c3ced8
generate GSAppKitWindowLeave leave events
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29253 72102866-910b-0410-8b05-ffd578937521
2010-01-10 11:29:36 +00:00
Fred Kiefer
938a6dd65a
Send an event directly to the window on focus in, instead of handling
...
this here ourselves.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29240 72102866-910b-0410-8b05-ffd578937521
2010-01-08 20:46:35 +00:00
Eric Wasylishen
1c46dd6417
Cairo backend:
...
-DPSsetflat: and -DPScurrentflat should not have been transforming
the flatness value with the current transformation matrix.
The effect of this could be seen in the Apple BezierPathLab example;
zooming in on the circle caused it to look more and more like a
polygon.
Also set NSBezierPath default flatness to 0.6 to match OS X
(it was 1.0, which made circles look a bit rough)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29145 72102866-910b-0410-8b05-ffd578937521
2009-12-20 18:47:26 +00:00
Fred Kiefer
9a47060a5a
Patch by Eric Wasylishen to set the pattern extend in the cairo backend.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29122 72102866-910b-0410-8b05-ffd578937521
2009-12-14 14:05:32 +00:00
Richard Frith-MacDonald
fc841e8186
pply fix from Doug Simons
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29062 72102866-910b-0410-8b05-ffd578937521
2009-11-26 11:15:59 +00:00
Riccardo Mottola
50ced01cf2
Remove left-over call to a mouse down event in a mouse-up
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29025 72102866-910b-0410-8b05-ffd578937521
2009-11-16 22:49:29 +00:00
David Chisnall
ed0e764447
Make terminating on signal via NSApp conditional on NSApp actually existing. This allows you to kill applications with ^C if they are using AppKit but not NSApplication.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29016 72102866-910b-0410-8b05-ffd578937521
2009-11-15 13:57:34 +00:00
Richard Frith-MacDonald
43eaa1d512
fix for missing mouse down events
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28989 72102866-910b-0410-8b05-ffd578937521
2009-11-10 14:45:50 +00:00
Richard Frith-MacDonald
76b8a13298
ensure GSTheme is initialialised before determining whether to decorate windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28982 72102866-910b-0410-8b05-ffd578937521
2009-11-09 12:14:31 +00:00
Richard Frith-MacDonald
5286906961
fixup for consistency with X11 backend
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28978 72102866-910b-0410-8b05-ffd578937521
2009-11-09 09:34:09 +00:00
Fred Kiefer
ca51d23b97
Don't return a static variable as the window device.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28975 72102866-910b-0410-8b05-ffd578937521
2009-11-08 16:14:53 +00:00
Fred Kiefer
ebfac7ae21
Set colour for cairo text drawing.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28964 72102866-910b-0410-8b05-ffd578937521
2009-11-06 09:58:09 +00:00
Fred Kiefer
6a453d533c
Correct -setColor:state: to handle alpha better.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28957 72102866-910b-0410-8b05-ffd578937521
2009-11-04 21:56:49 +00:00
Richard Frith-MacDonald
19c1a931bb
commit alpha tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28953 72102866-910b-0410-8b05-ffd578937521
2009-11-04 12:09:15 +00:00
Richard Frith-MacDonald
1cacaf1c5f
fixup to retrieve bitmapo data into correct location
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28952 72102866-910b-0410-8b05-ffd578937521
2009-11-04 09:51:34 +00:00
Fred Kiefer
2520a756ac
Correct stroke colour handling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28948 72102866-910b-0410-8b05-ffd578937521
2009-11-03 22:52:28 +00:00
Fred Kiefer
c172ce04b1
Remove commented out code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28944 72102866-910b-0410-8b05-ffd578937521
2009-11-03 08:57:28 +00:00
Fred Kiefer
55a29294d2
Use the offset adjustment for cairo > 1.8 in the general case.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28943 72102866-910b-0410-8b05-ffd578937521
2009-11-03 08:39:15 +00:00
Richard Frith-MacDonald
22cf7533eb
fix accidental commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28932 72102866-910b-0410-8b05-ffd578937521
2009-11-01 17:51:08 +00:00
Richard Frith-MacDonald
be032bb1cc
first go at GSReadRect
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28931 72102866-910b-0410-8b05-ffd578937521
2009-11-01 17:43:42 +00:00
Wolfgang Lux
20d75aac56
Partially revert the (defunct) recent window miniaturization changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28930 72102866-910b-0410-8b05-ffd578937521
2009-11-01 12:55:52 +00:00
Thomas Gamper
eefc79f2de
TG: Change GLX_VERSION_1_4 check
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28927 72102866-910b-0410-8b05-ffd578937521
2009-10-31 11:56:01 +00:00
Fred Kiefer
460445a4dc
Use the new NSAffineTransform for the last change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28912 72102866-910b-0410-8b05-ffd578937521
2009-10-29 08:13:31 +00:00
Fred Kiefer
197c45e3f5
Correct drawing of pattern colour.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28911 72102866-910b-0410-8b05-ffd578937521
2009-10-29 08:00:41 +00:00
Thomas Gamper
f1db2bf071
TG: Check for GLX_VERSION_1_4
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28905 72102866-910b-0410-8b05-ffd578937521
2009-10-28 20:09:21 +00:00
Thomas Gamper
38ab851c26
TG: Check for GLX_VERSION_1_4
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28904 72102866-910b-0410-8b05-ffd578937521
2009-10-28 20:06:44 +00:00
Riccardo Mottola
71d0bbdcaa
cleaned up c99-isms
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28903 72102866-910b-0410-8b05-ffd578937521
2009-10-28 18:46:31 +00:00
Thomas Gamper
1f84a6a21f
TG: Implement setMouseLocation:onScreen
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28898 72102866-910b-0410-8b05-ffd578937521
2009-10-27 18:42:33 +00:00
Thomas Gamper
c0abc9a675
TG: OpenGL cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28877 72102866-910b-0410-8b05-ffd578937521
2009-10-25 13:49:19 +00:00
Fred Kiefer
6653ef68cc
Add simple gradient implementation for the cairo backend.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28873 72102866-910b-0410-8b05-ffd578937521
2009-10-23 20:46:41 +00:00
Fred Kiefer
695a563092
Small correction of last change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28862 72102866-910b-0410-8b05-ffd578937521
2009-10-20 07:39:37 +00:00
Fred Kiefer
3c8eab0c49
Implement pattern colours for all backends.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28850 72102866-910b-0410-8b05-ffd578937521
2009-10-19 14:17:45 +00:00
Richard Frith-MacDonald
d7dc549a3e
code for deminiaturisation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28836 72102866-910b-0410-8b05-ffd578937521
2009-10-18 06:28:50 +00:00
Fred Kiefer
15c9010eeb
* Source/cairo/CairoFontEnumerator.m,
...
* Source/xlib/GSXftFontInfo.m: Use DejaVu as another fallback
font, as Bitstream Vera and FreeSans are no longer supplied
directly by Debian.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28414 72102866-910b-0410-8b05-ffd578937521
2009-07-27 15:06:55 +00:00
Fred Kiefer
d2179329e3
* Source/winlib/WIN32GState.m (-_paintPath:) Only draw when the
...
fill/stroke colour has a non zero alpha.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28391 72102866-910b-0410-8b05-ffd578937521
2009-07-13 15:58:42 +00:00
Fred Kiefer
a9dae5b3a7
Patch for the cairo scrolling issue. This will need a lot of testing!
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28389 72102866-910b-0410-8b05-ffd578937521
2009-07-10 08:11:39 +00:00
Fred Kiefer
5371332f41
Protect the XSHM code parts with #ifdef statements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28314 72102866-910b-0410-8b05-ffd578937521
2009-05-31 19:57:18 +00:00
Fred Kiefer
0f7b2e89cb
Finish rework of composite operators started four years ago.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28313 72102866-910b-0410-8b05-ffd578937521
2009-05-31 19:46:28 +00:00
Riccardo Mottola
42abff09f9
reordered instructions for c89 compatibility
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28176 72102866-910b-0410-8b05-ffd578937521
2009-04-04 10:24:19 +00:00
Gregory John Casamento
afb33293d1
Minor formatting change in ChangeLog and temporary removal/commenting out of code until a fix for bug#26046 can be resolved.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28151 72102866-910b-0410-8b05-ffd578937521
2009-03-30 05:37:42 +00:00
Fred Kiefer
4f3b8457a3
Correct the memory management of XWindowBuffer.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28141 72102866-910b-0410-8b05-ffd578937521
2009-03-27 23:16:48 +00:00
Fred Kiefer
76a7888859
Correct formatting, replaced tabs.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28070 72102866-910b-0410-8b05-ffd578937521
2009-03-12 22:12:31 +00:00
Thomas Gamper
605c77fe48
Thomas Gamper: implement key repeat support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28068 72102866-910b-0410-8b05-ffd578937521
2009-03-12 12:13:35 +00:00
Xavier Glattard
a764159165
Fix a bug (from rev.28036)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28049 72102866-910b-0410-8b05-ffd578937521
2009-03-07 20:47:55 +00:00
Xavier Glattard
6226804e56
Missing var initialization.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28046 72102866-910b-0410-8b05-ffd578937521
2009-03-06 09:31:18 +00:00
Xavier Glattard
08a079606a
Fix typo and oversights - Comes along with the previous changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28037 72102866-910b-0410-8b05-ffd578937521
2009-03-04 14:48:19 +00:00
Xavier Glattard
7e3dbdf741
OpenGL sub-windows: prevent back-store flush, handle expose events, and small fix/improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28036 72102866-910b-0410-8b05-ffd578937521
2009-03-04 09:58:41 +00:00
Fred Kiefer
85052ab206
Set black background pixel for OpenGL subwindow.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27945 72102866-910b-0410-8b05-ffd578937521
2009-02-21 22:32:33 +00:00
Fred Kiefer
19b62c7318
Remove special code in GLContext subwindow for different border handling
...
cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27944 72102866-910b-0410-8b05-ffd578937521
2009-02-21 22:23:38 +00:00
Riccardo Mottola
1cbd3fa6ed
handle altgr, bug #25397
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27858 72102866-910b-0410-8b05-ffd578937521
2009-02-13 19:15:20 +00:00
Richard Frith-MacDonald
8bb746dd57
minor fixes to compile with GC
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27843 72102866-910b-0410-8b05-ffd578937521
2009-02-11 08:45:56 +00:00
Wolfgang Lux
1101ab7f8f
Add an asterisk before the window's title if its document is edited
...
and the window manager is not capable of displaying the document's
status (i.e., any window manager other than Window Maker for now).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27821 72102866-910b-0410-8b05-ffd578937521
2009-02-08 23:04:34 +00:00
Fred Kiefer
db2999ee4d
Patch by Matt Rice to get OpenGL working again on X11.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27816 72102866-910b-0410-8b05-ffd578937521
2009-02-08 18:36:25 +00:00
Fred Kiefer
33ccb792b2
Correct bug in last change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27800 72102866-910b-0410-8b05-ffd578937521
2009-02-06 10:11:30 +00:00
Fred Kiefer
dac60cb4d2
Better handling of clip copying when the clip is not representable by cairo.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27797 72102866-910b-0410-8b05-ffd578937521
2009-02-05 18:44:18 +00:00
Fred Kiefer
958fc4f709
Fix some compiler warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27796 72102866-910b-0410-8b05-ffd578937521
2009-02-05 18:27:43 +00:00
Richard Frith-MacDonald
fb8176ebc4
temporarily comment out code to fix #25482
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27769 72102866-910b-0410-8b05-ffd578937521
2009-02-03 18:18:25 +00:00
Richard Frith-MacDonald
e71618164d
Fix typo in method to set parent window of a child, optimise color handling in themes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27742 72102866-910b-0410-8b05-ffd578937521
2009-01-31 09:59:32 +00:00
Fred Kiefer
f99e97c43e
Implement new method -setPartentWindow:forChildWindow: for X and
...
Windows.
Adjust y coordinate of point in compositeGState:... for cairo. This
solves bug #24709 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27718 72102866-910b-0410-8b05-ffd578937521
2009-01-29 09:32:32 +00:00
Riccardo Mottola
d9f8287ba9
fix for big endian machines
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27685 72102866-910b-0410-8b05-ffd578937521
2009-01-25 13:07:01 +00:00
Riccardo Mottola
d3974d45dc
Optimized and correct handling of 16 bit in _get_8_bits()
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27669 72102866-910b-0410-8b05-ffd578937521
2009-01-24 17:44:11 +00:00
Wolfgang Lux
993a5d976b
Set the WM protocols supported by a window according to its style
...
mask. This fixes an issue where an application could be deactivated
under Window Maker when a submenu is closed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27623 72102866-910b-0410-8b05-ffd578937521
2009-01-17 17:48:19 +00:00
Fred Kiefer
af8b2e7883
Give more information on failed font face access.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27587 72102866-910b-0410-8b05-ffd578937521
2009-01-13 00:34:14 +00:00
Fred Kiefer
cf452fb2b4
Pure white space cleanup.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27507 72102866-910b-0410-8b05-ffd578937521
2009-01-04 15:56:09 +00:00
Wolfgang Lux
f45b5b41a2
Fix an issue where the X11 backend could use incorrect modifier key
...
settings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27358 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:01:04 +00:00
Nicola Pero
39076b64a9
Removed GNUSTEP_CORE_SOFTWARE=YES from makefiles and instead set PACKAGE_NAME=gnustep-back
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27349 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:05:05 +00:00
Nicola Pero
417a0e2cbf
Set GNUSTEP_CORE_SOFTWARE to YES so that gnustep-back is installed by default in SYSTEM if gnustep-make has been configured with --disable-packages
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27335 72102866-910b-0410-8b05-ffd578937521
2008-12-18 18:51:49 +00:00
Fred Kiefer
c6461004e3
Set cbThis element of GLYPHSET structure before calling Windows funtion.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27325 72102866-910b-0410-8b05-ffd578937521
2008-12-17 20:40:25 +00:00
Wolfgang Lux
0981aebea3
Fix two issues with Window Maker.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27296 72102866-910b-0410-8b05-ffd578937521
2008-12-15 20:47:06 +00:00
Fred Kiefer
b644571f1a
Correct test for the need of an image conversion.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27279 72102866-910b-0410-8b05-ffd578937521
2008-12-11 21:03:51 +00:00
Wolfgang Lux
418cae5d53
Add method to XGServer to avoid blocking the run loop when the X event
...
queue is not empty.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27275 72102866-910b-0410-8b05-ffd578937521
2008-12-10 20:30:09 +00:00
Richard Frith-MacDonald
aeddc7b908
Fix #24671
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27192 72102866-910b-0410-8b05-ffd578937521
2008-12-02 22:51:34 +00:00
Wolfgang Lux
8dddc6afcb
Fix for bug #24707 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27101 72102866-910b-0410-8b05-ffd578937521
2008-11-20 16:51:33 +00:00
Fred Kiefer
01b5c75e8f
For cairo convert the bitmap, when the format is unsupported.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27014 72102866-910b-0410-8b05-ffd578937521
2008-11-06 09:33:13 +00:00
Fred Kiefer
ad0a88c152
Check whether the X server supports shm pixmaps.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26970 72102866-910b-0410-8b05-ffd578937521
2008-10-26 20:12:43 +00:00
Fred Kiefer
04974644c9
Implement transparent windows on MS Windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26963 72102866-910b-0410-8b05-ffd578937521
2008-10-24 17:35:45 +00:00
Fred Kiefer
1802f35b22
In XwindowBuffer get the default visual and depth from the XGServer.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26961 72102866-910b-0410-8b05-ffd578937521
2008-10-24 16:42:38 +00:00
Fred Kiefer
c6c8160a30
Correct code for double parent handling.
...
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26950 72102866-910b-0410-8b05-ffd578937521
2008-10-22 07:36:10 +00:00
Fred Kiefer
6c257ccc1f
Removed left over unused variable in windowbounds:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26927 72102866-910b-0410-8b05-ffd578937521
2008-10-17 15:37:26 +00:00
Fred Kiefer
6d3948c2cf
Remove unused parameters for rect conversion on windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26926 72102866-910b-0410-8b05-ffd578937521
2008-10-17 15:22:41 +00:00
Fred Kiefer
7a19a2cd69
Add change missing in last commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26925 72102866-910b-0410-8b05-ffd578937521
2008-10-17 14:57:03 +00:00
Fred Kiefer
f0ff2b2bb7
Further cleanup of windows server code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26924 72102866-910b-0410-8b05-ffd578937521
2008-10-17 14:49:02 +00:00
Fred Kiefer
55ddd077cb
Better image handling on Windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26915 72102866-910b-0410-8b05-ffd578937521
2008-10-14 18:57:15 +00:00
Fred Kiefer
d6fc8b8e74
Try to keep the visual of art consistent with the one used by X.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26849 72102866-910b-0410-8b05-ffd578937521
2008-09-14 21:22:54 +00:00
Fred Kiefer
cc5d04cdc4
Try to handle endianess differences better in the art backend.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26813 72102866-910b-0410-8b05-ffd578937521
2008-08-19 17:25:10 +00:00
Fred Kiefer
fc441f9bc5
Add missing window caching for minimized check.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26809 72102866-910b-0410-8b05-ffd578937521
2008-08-14 06:33:04 +00:00
Fred Kiefer
ff0796c5d4
Patch by Hubert Chathi <hubert@uhoreg.ca> to handle window minimization
...
on EWMH systems better.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26795 72102866-910b-0410-8b05-ffd578937521
2008-07-19 21:17:42 +00:00
Fred Kiefer
2c01043f5d
Correct the sign of the descender in the bounding box.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26760 72102866-910b-0410-8b05-ffd578937521
2008-07-12 08:02:37 +00:00
Fred Kiefer
c6f39a9553
Correct the setting of fontBBoxCorrect the setting of fontBBox..
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26757 72102866-910b-0410-8b05-ffd578937521
2008-07-11 23:08:36 +00:00
Fred Kiefer
865a89a647
Disable new active window handling again, as it leads to flickering
...
windows on KDE 4.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26752 72102866-910b-0410-8b05-ffd578937521
2008-07-11 07:03:22 +00:00
Fred Kiefer
97d1847e6a
Better focus setting for EWMH window managers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26749 72102866-910b-0410-8b05-ffd578937521
2008-07-07 23:02:46 +00:00
Fred Kiefer
9781c27f45
Small improvements for cairo backend.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26711 72102866-910b-0410-8b05-ffd578937521
2008-06-25 22:20:18 +00:00
Fred Kiefer
4e04ca9ea8
Convert X event millisecond timestamp to NSEvent second timestamp.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26634 72102866-910b-0410-8b05-ffd578937521
2008-06-12 19:55:09 +00:00
Adam Fedor
250ebdfad0
Revert library license version to 2 until applications can be converted
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26620 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:12:46 +00:00
Fred Kiefer
049d17ef30
Correct black bar for cairo > 1.6.0
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26605 72102866-910b-0410-8b05-ffd578937521
2008-06-07 16:39:08 +00:00
Gregory John Casamento
8026904d7f
* Headers/x11/XGGeneric.h:
...
* Source/x11/XGServerWindow.m: Added code to automatically make
any window which uses the NSDesktopWindowLevel also be omnipresent.
This capability will be added as a style later.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26588 72102866-910b-0410-8b05-ffd578937521
2008-06-01 22:01:08 +00:00
Fred Kiefer
7bf8083235
Small memory fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26580 72102866-910b-0410-8b05-ffd578937521
2008-05-27 22:29:25 +00:00
Fred Kiefer
b45697c04e
Faster check for modifier keys.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26578 72102866-910b-0410-8b05-ffd578937521
2008-05-27 20:22:17 +00:00
Fred Kiefer
6b0246aa65
Don't use initialized memory. Patch by Sebastian Reitenbach
...
<sebastia@l00-bugdead-prods.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26577 72102866-910b-0410-8b05-ffd578937521
2008-05-27 19:58:56 +00:00
Adam Fedor
f69ec5d76b
Fix memory leak.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26555 72102866-910b-0410-8b05-ffd578937521
2008-05-23 04:12:37 +00:00
Adam Fedor
ca9fe1135d
Standardize cache name to handle new Mac OS X display names
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26530 72102866-910b-0410-8b05-ffd578937521
2008-05-16 17:14:30 +00:00
Fred Kiefer
76a82bc4d2
* Source/xlib/GSXftFontInfo.m (Ones): Correct the parameter
...
* name.
* Source/winlib/WIN32FontInfo.m (-glyphIsEncoded:): Add
* parameter
to windows call to supress defaults glyphs for missing ones.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26444 72102866-910b-0410-8b05-ffd578937521
2008-04-13 19:39:33 +00:00