Commit Graph

282 Commits

Author SHA1 Message Date
Alexandre Julliard 646c562f9c Cleaned up some more USER dependencies. 2000-07-31 23:32:47 +00:00
Francois Jacques 5b6879c5c0 - implementation of SetWindowsRgn and GetWindowRgn
- X11DRV and TTYDRV updated with new API SetWindowRgn
2000-07-28 23:04:54 +00:00
Stephane Lussier 09be9d0d14 Now the service thread is no more in charge of erasing the background
of the Window. Service thread is doing the invalidation part, and the
application thread is doing the erasing part. All this has been
implemented using WM_SYNCPAINT message.
2000-07-28 22:21:19 +00:00
Dmitry Timoshkov d650c46c85 Do not crash if window was not found. 2000-07-28 20:20:03 +00:00
Raul Fernandes 9ed48c6af9 Added Brazilian keyboard. 2000-07-16 15:40:29 +00:00
Dmitry Timoshkov 04da8b8f28 Convert WND.text field to Unicode.
Add new key to wine.ini in the section [x11drv] - TextCP, which means
code page used for texts passed to X.
Accordingly fix handlers of WM_SETTEXT/WM_GETTEXT.
2000-07-10 12:09:31 +00:00
Lawson Whitney 68dd679043 Moved zero-sized window hack to x11drv. 2000-06-25 12:53:27 +00:00
Gerard Patel e908fd3865 Do not change the WS_CHILD style in SetParent. 2000-06-13 03:35:36 +00:00
Turchanov Sergei d0018bd547 DGA compile fix. 2000-06-08 19:21:06 +00:00
Alexandre Julliard 2b5d564e63 Merged mouse dll into USER. 2000-06-08 04:57:22 +00:00
Serge Ivanov 71b1246638 Well, SetParent doesn't work properly at all, but at least it must preserve
window ID.  In fact it also must preserve window styles, destroy X
counterpart if parent of popup or overlapped window is set to someting
different from Desktop, and lot of other stuff that it must and mustn't do.
But preserving ID is good enough for now.
2000-06-07 03:46:14 +00:00
Alexandre Julliard eac0e1837c Removed MSG_WineStartTicks (does not work for multiple address spaces
anyway).
2000-06-03 20:46:53 +00:00
Alexandre Julliard 2d8cf500c3 Merged display.dll into USER. 2000-06-03 04:20:19 +00:00
Susan Farley 8037389c49 Preserve WM hints that were set during window creation by calling
XGetWMHints prior to XSetWMHints.
2000-06-02 20:36:29 +00:00
Zoran Dzelajlija 846880b7e6 Basic Croatian language support. 2000-05-30 20:50:45 +00:00
Susan Farley 9ce8382ea0 Set and retrieve the window icon that is drawn under managed mode
(based on the work of Andrew Lewycky for Corel).
2000-05-23 04:12:23 +00:00
Alexandre Julliard 8c8237b756 Specify the service thread timers in ms instead of us. 2000-05-10 04:43:32 +00:00
Gerard Patel 32bf62e45a X11DRV_SetFocus: really don't mess with focus for managed windows. 2000-04-30 12:35:32 +00:00
Dimitrie O. Paun abdbced4fd Removed some HEAP_xalloc calls. 2000-04-29 14:20:28 +00:00
Patrik Stridvall 3d511617f4 Removed X_DISPLAY_MISSING. 2000-04-25 19:55:35 +00:00
Stephane Lussier 4bdf4af11e Implemented Mousewheel support. 2000-04-18 11:56:33 +00:00
Stephane Lussier fa8b7281cd Support switching the keyboard layout with WINE running. 2000-04-16 17:07:27 +00:00
Marcus Meissner 35870f95a0 Detypoed X11DRV_EVENT_SetInputMethod. 2000-04-14 14:09:50 +00:00
Stephane Lussier 3e731dae30 When dealing with XKB extensions, force the AltGr key mask to use the
group index instead of the modifier.
2000-04-14 14:09:20 +00:00
Stephane Lussier 0debf42208 Fixed AltGr key handling. 2000-04-13 16:00:08 +00:00
Alexandre Julliard 227a0894d4 Removed a number of global handle allocations and critical section
initializations.
2000-04-08 21:06:06 +00:00
Alexandre Julliard 7f3418fba0 Store monitor size and depth in the generic structure.
Merged monitor driver into USER driver.
2000-03-25 17:30:13 +00:00
Alexandre Julliard 9383eb94a7 A few simplifications and optimizations in the x11 driver. 2000-03-25 14:05:06 +00:00
Alexandre Julliard 28c3a1baf3 Moved graphics initialisation to the x11drv/ttydrv dll init code.
Merged event, keyboard and mouse drivers into USER driver.
2000-03-20 18:21:19 +00:00
Alexandre Julliard 9b59da0dd9 Misc small cleanups. 2000-03-18 22:25:41 +00:00
Alexandre Julliard fe08568a0d Moved command-line option handling out of the X11 driver.
Added support for "--" prefix on options.
Replaced a few X11 command-line options by wine.conf parameters.
2000-03-18 21:56:10 +00:00
Alexandre Julliard 83674ecc12 Michael Abd-El-Malek (on behalf of Corel)
When we were switching to another desktop, the popup windows lost
their WS_VISIBLE flag.
2000-03-15 19:48:13 +00:00
Patrik Stridvall 6cc47d4924 Removed a lot of unnecessary includes and fixed the compile errors. 2000-03-08 18:26:56 +00:00
Marcus Meissner 9b84bb66ea GetClipboardData16 might return an invalid global handle (spotted by
Corel).
2000-03-04 19:18:47 +00:00
Niels Kristian Bech Jensen 4eb4380360 Removed superfluous #include statements for header files included twice. 2000-02-29 22:06:06 +00:00
James Abbatiello 1758f2d81a Misc. fixes for compiler warnings. 2000-02-25 21:01:50 +00:00
James Abbatiello ce829bdc8c Better thread safety for WarpPointer hack. 2000-02-25 20:53:34 +00:00
Andreas Mohr f4185f63d0 Spelling fixes. 2000-02-20 19:17:15 +00:00
Hidenori Takeshima 8097a26372 Added Japanese jp106 and pc98x1 keyboard layout. 2000-02-20 13:43:29 +00:00
Alexandre Julliard 00377a78b7 Store config file contents in the registry so we only have to load it
once per session.
Replaced PROFILE_EnumerateWineIniSection by PROFILE_EnumWineIniString.
Removed a few unnecessary/unused command-line options.
2000-02-19 20:50:00 +00:00
Alexandre Julliard 383da68cf9 Optimized debugging API to reduce code size. 2000-02-10 22:15:21 +00:00
Jeremy White d3e22d9d55 Removed #include of wingdi.h and windef.h from winuser.h (and resolved
the resulting compilation failures).
2000-02-10 19:03:02 +00:00
Andreas Mohr 8cd93514f0 - add some documentation items
- fix some spelling
- fix some warnings
2000-01-29 21:12:58 +00:00
Alexandre Julliard 96ebf15edd Use a linked list instead of a DPA to manage pixmaps. 2000-01-26 02:21:30 +00:00
Alexandre Julliard eafa391081 Use argv[0] to locate the server executable. 2000-01-25 21:19:58 +00:00
Ove Kaaven 2527a33351 Added -dxgrab command line option, which confines cursor motion to the
DirectX primary surface.
2000-01-23 22:31:24 +00:00
Ove Kaaven b030d20fc4 Supercharged XShm implementation for DirectDraw. 2000-01-23 02:28:48 +00:00
Lionel Ulmer 939e252bdc Give +0+0 as a default position for the desktop window. 2000-01-04 00:54:39 +00:00
Ove Kaaven fc091b27ae Added extra US keymap with the infamous phantom key. 2000-01-04 00:28:31 +00:00
Alexandre Julliard 81ee21ddff Cosmetics. 1999-12-27 05:26:00 +00:00
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