Commit Graph

282 Commits

Author SHA1 Message Date
Francois Gouget baa9bf9a23 Buffer overflows and strncpy fixes. 1999-12-27 05:24:06 +00:00
Lionel Ulmer 62e4d5548c Fixed handling of DGA2.0 keyboard events. 1999-12-12 21:28:44 +00:00
Lionel Ulmer 3ba4be4054 - added support of DGA-2.0 events
- fixed the leaving of DGA-2.0 mode
1999-12-12 19:42:47 +00:00
Alexandre Julliard 1dc551cf6b Authors: Kai Morich <kai.morich@bigfoot.de>, Marcus Meissner <marcus@jet.franken.de>
Added systray support.
Swallow the windows systray icons into kpanel systray if KDE/KWM is
running.
1999-12-11 23:54:59 +00:00
Dimitrie O. Paun dd03cc19fd Make use of the DEFAULT_DEBUG_CHANNEL where appropriate.
Use the default version of FIXME, ERR, WARN, TRACE for the default
channel.
1999-12-08 03:56:23 +00:00
Lionel Ulmer c9713e58c0 - removed keyboard auto-repeat when DInput acquires it
- removed some (now) obsolete fixme's
1999-12-05 02:20:46 +00:00
Niels Kristian Bech Jensen c69a80c31d Compiler warnings fixed. 1999-11-28 20:31:04 +00:00
Niels Kristian Bech Jensen 1d5bc469cc Removed extra #include statements. 1999-11-21 02:14:36 +00:00
Ove Kaaven b5fed2f027 Fixed XShm completion event leak. 1999-11-12 00:59:17 +00:00
Ove Kaaven 7da242dbd5 DirectX-XShm now waits for the X server to finish the previous frame
before sending another frame down its pipe, avoiding the X server
overload and resulting slowness that used to be.
1999-11-07 22:44:06 +00:00
Lionel Ulmer acc7467c03 Added the possibility to have mouse movements reported relative to
Wine's mouse driver.
1999-11-07 21:25:57 +00:00
Juergen Lock 7cc0e274f4 Exec `wineclipsrv' not `wineclipsvr', and don't inherit wine's X
sockets to it (otherwise windows stay around when wine hangs).
1999-11-07 05:12:43 +00:00
Karl Lessard a69bc02958 Never send a WM_CLOSE message to a popup window. 1999-11-04 02:11:55 +00:00
Karl Lessard 228b0cc023 Check if the window is managed before trying to give it focus. 1999-11-04 02:10:08 +00:00
Jaroslaw Piotr Sobieszek 384a10ddb9 Added Polish keyboard support. 1999-11-04 02:02:05 +00:00
Pierre Mageau 18c9ee815e On ConfigureNotify, find the first visible window above the current one. 1999-10-31 21:30:16 +00:00
Huw D M Davies 238b6d7040 Fixed a couple of compiler warnings. 1999-10-31 01:56:51 +00:00
Francis Beaudet 56ab55d374 Enabled the persistent clipboard server. 1999-10-24 20:22:24 +00:00
Pierre Mageau f2d99ee56a Fixed an entry in the keyboard translation table for Ctrl-Break. 1999-10-24 17:21:32 +00:00
Noomen Hamza d1a1f7d6f7 Popup windows will be hidden when we minimize a main frame or shown
when we maximize or restore a minimized main frame.
1999-10-24 00:02:27 +00:00
Francis Beaudet c22ca7af80 Replaced a X call with a TSX call in XDRV_MOUSE_SetCursor(). 1999-10-23 14:37:45 +00:00
Zoltan Kovacs 3d4cabf0e1 Added Hungarian keyboard support. 1999-10-13 13:54:39 +00:00
Abey George fbecbc2952 Make sure the Focus Out window is still the Foreground window before
doing SetForegroundWindow(0) in Event_FocusOut.
1999-10-13 13:49:01 +00:00
Marcus Meissner e14deffd8b Added german keyboard layout with "nodeadkeys" option enabled (just to
apostrophes are switched).
1999-10-13 12:18:03 +00:00
Noel Borthwick ea0fd4d5d1 Added clipboard server. 1999-09-23 16:14:44 +00:00
Noomen Hamza fcc24ff431 WS_POPUP windows (excluding the WS_POPUPWINDOW windows) should be
closed after loosing the focus.
1999-09-23 11:42:16 +00:00
Gerard Patel 99b68252a1 Fix infinite loop with glastXFocusWindow. 1999-09-22 15:16:50 +00:00
Noel Borthwick d05b7beb5a - Add clipboard support for copying/pasting bitmaps or Pixmaps between Wine
and native Linux applications.
- Respond to the MULTIPLE selection request target when Wine is the
  selection owner.
- Relax type checking for TARGETS selection.
1999-09-20 15:42:47 +00:00
Stephane Lussier 540a227452 Pressing the delete key using an extended keyboard with numlock on is
not generating anymore a WM_CHAR message.
1999-09-10 13:57:59 +00:00
Noel Borthwick 2970067b14 - Implement interprocess clipboard communication.
- Support for the PRIMARY and CLIPBOARD selection atoms.
- Support for the TARGETS selection format.
- Expose native Windows clipboard formats through X selection targets.
1999-09-03 15:17:57 +00:00
Guy Albertelli 5bd551756b Completed GetKeyNameText for non-character keys. 1999-09-03 12:39:29 +00:00
Abey George 48c6eb55f7 Fixed resizing bugs for windows with WS_THICKFRAME and WS_DLGFRAME
styles.
1999-09-03 12:33:40 +00:00
Stephane Lussier 34264f2686 WM_SYSCOMMAND message (for SC_CLOSE) should be posted not sent. 1999-08-07 14:12:42 +00:00
Stephane Lussier 9455211417 X11drv SetDrawable function modifies the DC origin, this translation
should be reflected for the dc clipping region for CS_OWNDC and CS_CLASSDC.
1999-08-07 14:10:55 +00:00
Ivan De Saedeleer 0e65a49b2b Minor fix to the French Canadian keyboard. 1999-08-04 14:28:03 +00:00
Alexandre Julliard 15de615276 Got rid of dsprintf and related macros. 1999-08-04 12:22:42 +00:00
Achim Kaiser 564b784402 Draw an additional white bit for each invert bit of a cursor. 1999-07-24 12:16:58 +00:00
Noel Borthwick 36d7ca38b8 While handling the X FocusIn message in managed mode, if the window
has been disabled revert the X focus back to the last focus window.
1999-07-24 12:16:00 +00:00
Sylvain St-Germain 00bf3811ae Fixed inconsistency in conditions that determines if a window requires
a WM border.
1999-07-24 12:11:22 +00:00
Huw D M Davies 106b08320f Fixed compiler warning. 1999-07-24 10:13:36 +00:00
Lionel Ulmer 2bce6fea7e - Added a new option 'noxshm'
- Added a 16bpp -> 32 bpp conversion function
1999-07-23 19:19:56 +00:00
Marcus Meissner e32a317b76 Removed the old, historical and no longer working IPC support. 1999-07-11 14:13:56 +00:00
Ulrich Weigand 203780eb6e Removed all EVENT_Synchronize( FALSE ) calls; use a periodic callback
calling XFlush() instead.
1999-07-10 10:24:31 +00:00
Alexandre Julliard 359f497e97 Converted to the new debug interface, using script written by Patrik
Stridvall.
1999-07-04 16:02:24 +00:00
Patrik Stridvall d96e1f133e Moved code to the X11 driver. 1999-07-04 13:31:03 +00:00
Patrik Stridvall 1ed4ecffa8 ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
1999-06-26 14:58:24 +00:00
Lars Heete dfc46d94a6 Prevent bad window X error. 1999-06-26 11:45:36 +00:00
Philippe Froidevaux c778d9bc85 Added Swiss french keyboard layout. 1999-06-22 19:01:14 +00:00
Alexandre Julliard 55e1af93b5 Added DebugBreak. 1999-06-18 18:24:47 +00:00
Ulrich Weigand 7f53c57321 - Do not call XConfigureWindow if SetWindowPos was called due to a
received ConfigureNotify event (to avoid recursion).
- Use XTranslateCoordinates in EVENT_GetGeometry instead of manually
  walking the tree.
- Set XSizeHint.win_gravity to StaticGravity for managed windows.
1999-06-18 17:03:13 +00:00
Ulrich Weigand a7617a05d1 Bugfix: DISPLAY_SetCursor should not use USER-internals, as it is also
used with native USER ...
1999-06-13 08:35:26 +00:00
Patrik Stridvall 4bf335497d Removed direct references to CLASS internals. 1999-06-12 14:52:15 +00:00
Ulrich Weigand b38e1decb8 Better implementation of [GS]etForegroundWindow.
Fixed focus handling on inter-thread activation.
Adapted FocusIn/Out event handling to per-queue focus.
1999-06-12 06:42:20 +00:00
Eric Pouech ab450aad07 Fixed order for entering critical sections (X11 vs. WndLock) when
calling X11DRV_MOUSE_SetCursor.
1999-06-07 17:38:53 +00:00
Ulrich Weigand 92499dba2f Try to improve ConfigureNotify event processing. 1999-06-05 15:12:39 +00:00
Ulrich Weigand 2bb2d9b008 Fixed potential memory corruption in EVENT_QueryZOrder.
Fixed potential X synchronization problem in X11DRV_WND_SetHostAttr.
1999-06-05 11:49:04 +00:00
Ulrich Weigand 153334e50a Removed DummyMotionNotify EVENT driver routine. 1999-06-05 09:02:11 +00:00
Rikhardur Egilsson 365c54e77a Icelandic keyboard support. 1999-05-29 11:04:09 +00:00
Ulrich Weigand 7581f85617 Moved X input event handling out of EVENT_WaitNetEvent and into
service thread callback; moved EVENT_WaitNetEvent out of the EVENT_
driver.  Changed winContext to hold HWND instead of WND *.
1999-05-22 18:57:17 +00:00
75793af6d1 Added Italian keyboard support. 1999-05-13 18:49:47 +00:00
Andreas Mohr 41d38ee8fb Fixed quite ill window locking code. 1999-05-13 18:43:40 +00:00
Alex Korobka 98447497b7 Rearranged PAINT_RedrawWindow() so that it first recursively updates
invalid regions and only then starts sending out messages. This should
help with reentrancy during message processing and now it needs just
one (or none) scratch region for all there is to do. Also, small fixes
for SetWindowPos().
1999-05-08 17:57:09 +00:00
Alexandre Julliard 06c275a643 Converted to the new debugging interface (done with the help of the
script written by Patrik Stridvall).
1999-05-02 14:32:27 +00:00
Ulrich Weigand 9dcaeca29f Use SERVICES callback to implement Windows timers.
Timer expiration handling removed from EVENT_WaitNetEvent loop.
1999-05-02 11:30:39 +00:00
Guy Albertelli 20ac20724d Correct logic in GetKeyNameText. 1999-05-02 09:11:33 +00:00
Peter Bortas 1e24a087ed Added Swedish keyboard layout. 1999-04-25 10:53:22 +00:00
Noel Borthwick ee7199549a Fixed a problem with managed mode, where popup windows with a WS_DLGFRAME
style were appearing with a title bar. According to the docs for
WS_DLGFRAME a window with this style cannot have a title bar.
1999-04-25 09:19:21 +00:00
David Luyer a4dd6a6af1 - consolidate both cases of !pending in WaitNetEvent
- select() returns -1 not 0 on error in WaitNetEvent
1999-04-25 09:11:05 +00:00
Patrik Stridvall 0f8bc5b5c7 Fixed ANSI compabillity. 1999-04-22 16:27:50 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Noel Borthwick a0d03ef1fc While handling the WM_DELETEWINDOW client message check if a window
has been disabled and if so prevent an SC_CLOSE message from being
sent.
1999-04-18 09:21:01 +00:00
Pablo Saratxaga 002106ac22 Added walon language support (I also moved Cz -> Cs, Sw -> Sv, and Po
-> Pt; to conform to standard names for those languages).
1999-04-16 09:06:58 +00:00
Huw D M Davies 746706b309 index == 3 corresponds to Alt-Gr + Shift. 1999-04-15 16:37:16 +00:00
Pavel Roskin 6f01462b8b Fixed ugly disabled controls and black background in Write and Lotus
Notes.
1999-04-15 15:52:59 +00:00
Francois Boisvert e5811f0eb1 Solved a deadlock between global lock and wnd lock in event.c. 1999-04-15 15:22:23 +00:00
Guy Albertelli 76d8abe38f Fix scancodes for NumLock and Num-/.
Fix MapVirtualKey() (maptype=2) to return proper ascii code.
Reworked GetKeyNameText() again.
1999-04-15 15:14:44 +00:00
Guy Albertelli 2031d6c430 Partial implementation for GetKeyNameText for new keyboard structure. 1999-04-11 14:47:41 +00:00
Brian Gerst 2f9a31c2dc Fixed X11DRV_MOUSE_WarpPointer initial value. 1999-04-10 16:37:03 +00:00
José Marcos López 05eb8b5125 Added Spanish keyboard layout. 1999-04-04 12:44:42 +00:00
Eric Pouech 24f5ffc620 Updated French keyboard. 1999-04-03 13:50:58 +00:00
Ove Kaaven 787cf10922 'Realigned' the layout table a bit. Applied the non-latin-1 stuff and
the dead key mapping stuff to the actual mapping code too.  Prettied
up the fixme message. Added a check where if the keys of two layouts
match exactly, the one with the best-matching keycode order is chosen,
so that the QWERTY and Dvorak layouts can be distinguished.
1999-04-03 11:18:58 +00:00
Marcus Meissner 2199f6e078 Split off keysym/deadchar -> char mapping, use it in DetectLayout. 1999-04-01 12:05:44 +00:00
Alex Korobka 44a1b59cec Fixes for ignored WVR_[VH]REDRAW flags, made minimization in managed
mode go through window manager, small bugfixes for menu and window
code, extended clipboard driver model to handle formats other than
text.
1999-04-01 12:03:52 +00:00
Patrik Stridvall b87fe2e9bf More code moved to the X11 driver (bitmap and palette and misc). 1999-04-01 08:16:08 +00:00
Dimitrie O. Paun 05c0c8ef13 Changed some debug messages from one channel to another, to clean up a
bit the debug channel usage.
1999-03-28 15:07:41 +00:00
Pavel Roskin dbfdca8b4c Added Russian keyboard support. 1999-03-28 13:44:56 +00:00
Pavel Roskin f15d180669 Changes in X11DRV_KEYBOARD_DetectLayout in order to implement Russian
keyboard support.
1999-03-28 13:39:55 +00:00
Francois Boisvert 3a3cd9fab1 Fixed some bugs in thread safeness for wnd struct. 1999-03-28 12:42:52 +00:00
Jonathan Naylor a5a02279a6 Added Swiss German keyboard layout. 1999-03-28 12:36:27 +00:00
Alex Korobka 4f1ac05dea Moved hrgnUpdate from client to window coordinates, made nonclient
painting depend on the update region, reworked SetWindowPos() and
RedrawWindow() to speed up update region calculation, made -desktop
work properly, added WM_CANCELMODE here and there, fixed several
window activation bugs that crept in since the last time.
1999-03-28 09:37:57 +00:00
Ulrich Weigand 85d52b35c3 Add IsWindow() checks after SendMessage() returns. 1999-03-24 15:01:29 +00:00
Kalevi J Hautaniemi cc5d924b63 Added Finnish keyboard layout. 1999-03-22 14:46:08 +00:00
Veksler Michael e94e35431e Removed winuser16.h from x11drv.h. 1999-03-22 12:41:26 +00:00
Robert Pouliot 4f278bdac1 One small error corrected and the 102th key... 1999-03-21 15:46:34 +00:00
Bertho Stultiens ff2b369739 Fixed Danish keyboard layout. 1999-03-19 16:42:52 +00:00
Bruno Afonso e70b1838df Added Portuguese keytable. 1999-03-17 15:54:44 +00:00
Robert Pouliot 5574c99bca Added Canadian French keyboard layout. 1999-03-17 15:39:36 +00:00
Huw D M Davies 12eb5fd1e8 Added UK keyboard layout. 1999-03-17 15:29:35 +00:00
Ulrich Weigand 6d45e7a9ef Avoid unnecessary error messages. 1999-03-16 10:37:30 +00:00
Ove Kaaven 44b717825d Better comments, and added ANSI codepages in table.
US keyboard contributed by Uwe Bonnes.
French keyboard contributed by Eric Pouech.
German keyboard contributed by Ulrich Weigand.
Danish keyboard contributed by Bertho Stultiens.
1999-03-15 15:24:32 +00:00
Francois Boisvert 6b1b41cf85 Made access to the wnd struct thread-safe. 1999-03-14 17:25:32 +00:00
Jim Aston 2e1cafa288 Renamed wintypes.h to windef.h. 1999-03-14 16:35:05 +00:00
Ove Kaaven 7173e1c26e First attempt at supporting different keyboard layouts with their
correct scancode mapping.
1999-03-14 14:00:57 +00:00
Pavel Roskin a0fd289aef Prevent X11 errors when XCreateWindow is called with zero width or
height.
1999-03-14 13:41:07 +00:00
Ulrich Weigand 175989dbd4 Bugfix: ToAscii should not generate ASCII code when key-up flag is set. 1999-03-10 13:28:30 +00:00
Ulrich Weigand 9cfeb5b88c Avoid unnecessary GraphicsExpose events. 1999-03-10 13:26:09 +00:00
David Luyer ee517e863e - fixed missing stdlib.h and string.h includes everywhere
- removed a couple of unneeded stdlib.h and stdio.h includes
1999-02-28 12:27:56 +00:00
Alexandre Julliard a396029270 Large-scale renaming of all Win32 functions and types to use the
standard Windows names.
1999-02-26 11:11:13 +00:00
Stephane Lussier b50272bd75 Fix problem where you need mouse activity to unlock some 16 bits
thread with multi-threaded apps.
1999-02-21 18:15:26 +00:00
Ulrich Weigand 4aaf65e6b4 Bugfix: Cope with NULL pDriverData in X11DRV_WND_GetXWindow. 1999-02-18 17:30:40 +00:00
Jerome Vouillon 1da6dbab67 Make a correct use of clipping rectangles. 1999-02-14 13:32:13 +00:00
Ove Kaaven 8cef89652d Since SetParent now hides/shows, explicitly invalidating DCs in the
parent change operation should no longer be necessary.
1999-02-14 11:23:01 +00:00
Joseph Pranevich ebc0e5e0a4 Moved initialization until later. Also moved around code a bit to be
consistant.
1999-02-14 11:15:47 +00:00
Marcus Meissner 69c0bbea1a Some small bugfixes, added more PE relocation types (for WinCE mostly),
some console prototypes, -dll is useful for winelib too, regtest
compile fixed.
1999-02-09 14:25:57 +00:00
Patrik Stridvall ab121e7838 X11 driver changes. 1999-02-04 11:11:01 +00:00
NF Stevens e00bb9d3f7 Create X window for child windows reparented to be top level windows. 1999-01-31 10:01:41 +00:00
Bernd Herd ec721121e0 SetParent should link the window at the start of the list. 1999-01-30 15:50:58 +00:00
Francis Beaudet 84ee125fd9 Make sure that the keystate received by the WM_XBUTTONUP and
WM_XBUTTONDOWN matches the message. In X, the keystate is changed
after the message is processed.  In Windows, it is changed before.
1999-01-30 12:59:09 +00:00
Marcus Meissner bb7959b58a Free the private data pointer, THEN set it to NULL. 1999-01-24 18:55:48 +00:00
Marcus Meissner 308477b6df Set private data struct to NULL to expose problems in other code
better. Fixes the XUnmapWindow problems reported by replacing them
with NULL ptr dereferences.
1999-01-23 14:03:11 +00:00
Ulrich Weigand 1afd5a25f0 Use Callout to call RedrawWindow32. 1999-01-20 12:52:10 +00:00
Alexandre Julliard 6842064fd7 Fixed SetFocus that was broken when moved to x11drv. 1998-12-27 15:26:28 +00:00
Patrik Stridvall 151170c437 Moved more things to the X11 driver. 1998-12-26 12:00:43 +00:00
Ulrich Weigand be672fe587 Handle non-hardware X events correctly with native USER
(removed reference to MESSAGEQUEUE from KERNEL code).
Handle Expose events with native USER.
1998-12-24 14:59:53 +00:00
Rein Klazes 4caa2a1147 Lowest scan code seems to be 1, not zero. 1998-12-24 14:37:36 +00:00
Dirk Thierbach 9824ec404c Set the class hints for managed windows. 1998-12-15 17:33:04 +00:00
Ulrich Weigand 2f09818fcd Removed deferred Expose events handling. 1998-12-10 08:59:53 +00:00
Marcus Meissner daf860e501 Superflous WINAPI removed. 1998-12-08 10:14:00 +00:00
Brian Gerst 9784701f08 The scancode Windows send for extended keys is the scancode of the
unextended equivalent of the key, plus the extended flag.
1998-12-07 15:44:54 +00:00
Patrik Stridvall e35d6366ef Moved more code to the X11 driver. 1998-12-07 09:13:40 +00:00
Ulrich Weigand 431d1a0ce2 Moved X11 mouse cursor handling to the DISPLAY driver. 1998-11-14 18:57:47 +00:00
Patrik Stridvall ea5847247e Started moving some X11 window management code to windows/x11drv. 1998-11-01 16:22:07 +00:00