Commit Graph

57 Commits

Author SHA1 Message Date
Vincent Povirk 4622889bd5 winex11.drv: Ignore FocusOut events on virtual desktop windows.
We don't want to send WM_CANCELMODE or set the foreground window to the
desktop when a virtual desktop loses focus. It has its own focus independent
of X.
2009-11-12 14:39:54 +01:00
Vincent Povirk 6823f4aaf8 winex11.drv: Allow explorer to focus other process windows.
When explorer gets a take focus message, it tries to focus the foreground
window, but this doesn't work because set_focus can only focus windows in
the current process. We have to look for the focus window in the foreground
thread, not the current one, or we won't find the other process's windows.

Since the other process may crash at any time, causing its windows to be
destroyed, we also have to ignore the BadWindow error that will occur if that
happens at a critical time.
2009-11-12 14:39:39 +01:00
Alexandre Julliard 9ea4e18be6 winex11: Do not give focus to a WS_EX_NOACTIVATE window. 2009-10-23 12:25:22 +02:00
Alexandre Julliard 4c52a28e6b winex11: Use explicit prototypes for function pointers. 2009-10-02 15:06:59 +02:00
Dmitry Timoshkov 9dbdd708e3 winex11.drv: Handle WM_DELETE_WINDOW by simulating clicking the caption Close button. 2009-09-09 12:18:28 +02:00
Alexandre Julliard 12d1ff8ef6 winex11: Add handling of take focus event on the desktop window. 2009-08-17 16:32:45 +02:00
Alexandre Julliard eafc9caa80 winex11.drv: Don't give focus to a minimized window upon take focus. 2009-04-23 12:41:57 +02:00
Vincent Povirk 538cf8b847 winex11: Select StructureNotifyMask input on all windows. 2009-01-10 17:43:11 +01:00
Maarten Lankhorst 0a6459598a user32/winex11.drv: Change all user32 operations to use CDECL. 2008-12-23 13:06:04 +01:00
Alexandre Julliard 7fdadbb377 server: Add functions for conversions between server user handles and pointer-style handles. 2008-12-08 16:58:20 +01:00
Michael Stefaniuc 82a3c433b3 winex11.drv: Remove some superfluous casts. 2008-12-01 12:57:00 +01:00
Alexandre Julliard 8e7dad93ef winex11: Compare the window position against the cached position in ConfigureNotify. 2008-09-17 21:17:12 +02:00
Alexandre Julliard ecf579b8c4 winex11: Ignore the initial WM_STATE transition out of withdrawn state. 2008-09-17 21:17:11 +02:00
Alexandre Julliard ec4cc7f76b winex11: Remove debug hack that slipped into commit a4a5a2ec12. 2008-09-11 20:19:11 +02:00
Alexandre Julliard 370368aace winex11: Moved the X11DRV_WindowMessage function to window.c. 2008-09-08 15:42:24 +02:00
Alexandre Julliard 4a69797c43 winex11: Also check the maximized when restoring a minimized window. 2008-07-31 17:12:16 +02:00
Alexandre Julliard aca0296879 winex11: Check for wm maximized state in ConfigureNotify and update the window state accordingly. 2008-07-31 17:11:28 +02:00
Alexandre Julliard 8d77c375b2 winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window. 2008-07-31 12:08:38 +02:00
Alexandre Julliard 31b4061c9b winex11: Fetch the current X window position on ShowWindow resulting from a window manager event.
This ensures that we get the correct size for maximized windows too,
which cannot be done with SetWindowPlacement.
2008-07-31 11:40:49 +02:00
Aric Stewart a4a5a2ec12 winex11: Allow for sane SCIM im processing by processing some filtered KeyRelease events. 2008-07-10 12:30:56 +02:00
Alexandre Julliard e705764cca winex11: Pass the display as parameter to a few more functions instead of using thread_display(). 2008-06-26 16:20:02 +02:00
Andrew Talbot 5156219a1c winex11.drv: Remove unused variables. 2008-05-02 16:08:15 +02:00
Alexandre Julliard 855308fd95 winex11: Merged the contents of winpos.c into window.c. 2008-04-23 15:32:58 +02:00
Alexandre Julliard 31ed6473be winex11: Moved the ConfigureNotify handler to event.c. 2008-04-22 16:56:31 +02:00
Alexandre Julliard 64e8128409 winex11: Moved the MapNotify handler to event.c. 2008-04-17 16:13:12 +02:00
Alexandre Julliard 585da9296d winex11: Moved the ExposeEvent handler to event.c.
Use consistent naming for all event handlers.
2008-04-17 16:09:26 +02:00
Alexandre Julliard 3bfa90eeda winex11: Fix handling of property sizes for 64-bit platforms. 2008-04-07 11:41:54 +02:00
Alexandre Julliard 86675edfee winex11: Replace the lock_changes flag by a check on the event currently being processed. 2008-04-02 16:43:49 +02:00
Alexandre Julliard a442d3b46d winex11: Rely on PropertyNotify events instead of Map/UnmapNotify to detect iconification. 2008-04-02 15:59:12 +02:00
Alexandre Julliard f89aa12829 winex11: Move handling of WM_STATE changes to a separate function, and call it directly from wait_from_withdrawn_state. 2008-04-02 15:55:25 +02:00
Alexandre Julliard 5977c72325 winex11: Store a pointer to the X11 event currently being handled instead of a simple count. 2008-03-13 13:35:02 +01:00
Alexandre Julliard e874fded99 winex11: Discard ConfigureNotify events even if the intervening events are for other windows. 2008-03-11 19:50:27 +01:00
Alexandre Julliard 0118e0d0f1 winex11: Add support for merging redundant events, and use it for ConfigureNotify and MotionNotify. 2008-03-11 12:11:52 +01:00
Alexandre Julliard d0e14bf709 winex11: Wait for a window to move out of withdrawn state before withdrawing it again. 2008-03-05 16:52:22 +01:00
Alexandre Julliard 3b6f95c663 winex11: Add a DestroyNotify handler to catch a situation that is not supposed to happen. 2008-03-05 16:51:09 +01:00
Alexandre Julliard 68fa3524f8 winex11: Get rid of direct accesses to the window structure in the drag&drop code. 2008-02-28 20:02:31 +01:00
Alexandre Julliard b76db19e88 winex11: Use XWithdrawWindow to unmap managed windows, and wait until they are withdrawn before mapping them again. 2008-02-27 19:13:09 +01:00
Alexandre Julliard 5a5344b4ad winex11: Added tracking of the WM_STATE window property. 2008-02-27 19:11:43 +01:00
Andrew Talbot 68feed7e77 winex11.drv: Remove unneeded casts. 2008-02-04 14:20:45 +01:00
Alexandre Julliard c19af910eb winex11.drv: Don't create a win_data structure for the desktop window, except in the process that owns it.
Handle desktop size changes by sending a message to the desktop owner.
2008-01-17 19:53:59 +01:00
Austin English 0e4adae973 Spelling fixes. 2008-01-07 13:41:01 +01:00
Rob Shearman 486326ed48 include: Add more types and function declarations to the rpcasync.h header file.
Fix up a couple of conflicts with the Status field in the
RPC_EXTENDED_ERROR_INFO and the X Status define.
2007-12-18 12:32:55 +01:00
Chris Robinson d9571c9e6f wgl: Store the fbconfig id with the window when a pixel format is set. 2007-09-18 09:28:06 +02:00
Alexandre Julliard eaad370987 winex11: Don't try to activate the desktop window on take focus. 2007-08-16 23:43:58 +02:00
Vitaliy Margolen d836a50621 winex11drv: Correctly react to focus loss away from Wine. 2007-07-23 11:53:17 +02:00
Lei Zhang e20625e5c9 winex11.drv: Reset focus if application does not want to be activated. 2007-06-22 12:28:45 +02:00
Lei Zhang 9a67bded8c winex11.drv: Send WM_MOUSEACTIVATE before closing a window. 2007-06-21 16:39:02 +02:00
Andrew Talbot 080635bdeb winex11.drv: Exclude unused headers. 2007-05-29 12:10:21 +02:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Alexandre Julliard 072698c953 winex11.drv: Store the display file descriptor directly in the server message queue.
Get rid of a few WaitForMultipleObjectsEx hacks.
2007-04-04 18:02:53 +02:00