Eric Wasylishen
8c0cb9cb56
back-ericwa-experimental: merge changes from turnk
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34624 72102866-910b-0410-8b05-ffd578937521
2012-01-24 23:55:51 +00:00
Eric Wasylishen
6417b8e6ae
back/ericwa-experimental: remove __objc_xgcontextevent_linking
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34153 72102866-910b-0410-8b05-ffd578937521
2011-11-09 22:39:30 +00:00
Eric Wasylishen
d3d7cc03a2
back/ericwa-experimental: remove xcursor fallback; the xcursor library has built-in fallback for old x servers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34152 72102866-910b-0410-8b05-ffd578937521
2011-11-09 22:29:47 +00:00
Eric Wasylishen
0aca753728
back/ericwa-experimental: remove a styleoffsets call, waitAllContexts
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34151 72102866-910b-0410-8b05-ffd578937521
2011-11-09 22:22:31 +00:00
Eric Wasylishen
6cc8506bc4
back/ericwa-experimental: remove some unused stuff from _gswindow_device_t
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34150 72102866-910b-0410-8b05-ffd578937521
2011-11-09 22:09:27 +00:00
Eric Wasylishen
cd92e78ff5
back/ericwa-experimental: remove gdriverProtocol
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34149 72102866-910b-0410-8b05-ffd578937521
2011-11-09 22:03:03 +00:00
Eric Wasylishen
661d409586
back/ericwa-experimental: remove nativewindow for now
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34147 72102866-910b-0410-8b05-ffd578937521
2011-11-09 21:39:13 +00:00
Eric Wasylishen
94c2c544b5
back/ericwa-experimental: fix _OSFrameToXFrame which I broke by accident
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34146 72102866-910b-0410-8b05-ffd578937521
2011-11-09 21:25:17 +00:00
Eric Wasylishen
a8d3382ff2
back/ericwa-experimental: merge r34136 (gl fix)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34140 72102866-910b-0410-8b05-ffd578937521
2011-11-09 18:32:31 +00:00
Eric Wasylishen
addea6d663
back-ericwa-experimental: delete a pile of legacy code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34068 72102866-910b-0410-8b05-ffd578937521
2011-10-25 19:30:02 +00:00
Fred Kiefer
8d50a6cef9
* Headers/x11/XWindowBuffer.h: Bracket even more usage of shm in
...
conditional compilation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34034 72102866-910b-0410-8b05-ffd578937521
2011-10-20 08:34:49 +00:00
Fred Kiefer
3cc89b962e
Protect usage of shape extension.
...
Should fix bug #34552 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34016 72102866-910b-0410-8b05-ffd578937521
2011-10-17 11:28:54 +00:00
Fred Kiefer
bc7f059583
* Source/x11/XGDragView.m (GSActionForDragOperation,
...
GSDragOperationForAction): Corrected drag type conversion.
Patch by Andreas Schick <andreas.schik@googlemail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33829 72102866-910b-0410-8b05-ffd578937521
2011-09-12 09:18:29 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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