summaryrefslogtreecommitdiff
path: root/hw/xwin/winmultiwindowwindow.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-26hw/xwin: Avoid WIN_WINDOW_PROP races during Windows window destructionJon TURNEY1-2/+0
The WIN_WINDOW_PROP is removed during WM_DESTROY handling, so it is not neccessary to remove it in winDestroyWindowsWindow(), and doing so opens a race condition, as we may attempt to access that property in the wndproc before the WM_DESTROY has completed. A specific example of that race is if a WM_KILLFOCUS occurs in the window between property removal and WM_DESTROY processing, where we will attempt to apply DeleteWindowFromAnyEvents() on an invalid (null) WindowPtr. Also guard against null WindowPtr in the WM_KILLFOCUS handler See http://cygwin.com/ml/cygwin-xfree/2012-01/msg00009.html Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2011-07-07hw/xwin: Report Window XIDs in Window debug messagesJon TURNEY1-12/+5
Report Window XIDs in Window create/destroy/reparent debug messages It's actually quite useful if you are trying to corrolate those events with what a client is doing... Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2011-07-07hw/xwin: Add a flag to track which windows have been drawn to using WGL.Jon TURNEY1-1/+9
Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2011-06-29Cygwin/X: Preserve client area size and position on Windows window style changeJon TURNEY1-5/+32
When the style changes, adjust the window size so the client area remains the same. Otherwise the window size may change when sizing is reflected from Windows to X, and some windows are drawn expecting them to be exactly the requested size (e.g. the gmplayer control window) Use DeferWindowPos to delay the resize to preserve client area on WM_STYLECHANGING until after the style change has actually happened in WM_STYLECHANGED As a consquence of this, we need to be more careful to create windows with exactly the requested placement and client area initially, so the client area matches what the X client requested Also synchronize the X windows idea of the placement of a window which Windows is allowed to place Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
2011-04-27Cygwin/X: Don't make InputOnly windows visibleJon TURNEY1-6/+11
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
2011-04-27Cygwin/X: Fix a GDI bitmap resource leak of window iconsJon TURNEY1-1/+12
Ensure any icon created specially for a window is destroyed when the window is destroyed Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
2010-10-19Cygwin/X: Move duplicate extern variable declarations from various .c files ↵Jon TURNEY1-9/+0
to a new header file For the global variables defined in winglobals.c, remove duplicate extern declarations from the beginning of various .c files, and move most of them into a new header file, winglobals.h Leave some clipboard related variables alone for the moment, they need treating more carefully, to avoid mixing client and server type definitions. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2010-10-19Cygwin/X: Drop several unneeded includes of winprefs.hJon TURNEY1-1/+0
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2010-04-28Cygwin/X: AIGLX using native WGLJon TURNEY1-1/+2
A rewrite of the XWin DDX AIGLX code to actually make it do something useful again Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2010-02-05Cygwin/X: Window placement refinement for multiwindow modeJon TURNEY1-0/+7
Window placement refinement for multiwindow mode, ensure a window actually ends up somewhere visible if it tries to create itself offscreen (which can happen for e.g. if it has a stored position from a different sized display) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2009-11-09Xming: Tidy up code for initial native window positioningColin Harrison1-12/+13
Tidy up code for initial native window positioning and avoid a duplicate call to winMultiWindowGetTransientFor() Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-11-09Cygwin/X: Fix typo in g_fAnotherWMRunning and tidy up WM detection codeJon TURNEY1-12/+0
Tidy up code for detecting another WM is already running Fix typo g_fAnotherWMRunnig -> g_fAnotherWMRunning Remove some unused event mask macros Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2009-11-09Xming: Replace all the uses of deprecated functions in hw/xwin with current onesColin Harrison1-1/+1
Replace uses of LookupIDByType() and SecurityLookupIDByType() with dixLookupResourceByType() Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-26Cygwin/X: Update Get/SetWindowLong() to Get/SetWindowLongPtr() everywhereColin Harrison1-1/+1
Get/SetWindowLong() is superseded by Get/SetWindowLongPtr(), so change to using that everywhere it remains Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-21Cygwin/X: winInitMultiWindowClass() should be staticJon TURNEY1-0/+1
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-03Cygwin/X: Change to a single native window class for all X windowsJoe Krahn1-90/+42
from fd.o Bugzilla #4491: There is no point in having one class for every window, aside from trying to set custom icons via the class, which we no longer do, so converted to using a single class for all client windows. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Cygwin/X: Place prototype for winSelectIcons() in a header fileJon TURNEY1-2/+0
Fixes warning as prototype is now in scope for the definition Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-19Xming: Correctly parent XA_WM_TRANSIENT_FOR windows in -multiwindow mode ↵Colin Harrison1-1/+14
when a windows window is created. Fix internal WM to correctly parent XA_WM_TRANSIENT_FOR windows in -multiwindow mode when a windows window is created, and to de-iconize parent windows when a child window acquires focus. XXX: Perhaps we should also shuffle parent(s) forward through Z-order when a child acquires focus? Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-15Xming: Reduce MOUSE_POLLING_INTERVALColin Harrison1-7/+0
Reduce MOUSE_POLLING_INTERVAL from 500ms to 50ms In -multiwindow mode, this determines how quickly X windows can track the mouse when it is outside any X window... Move the cursor around an xeyes, and you will see what this timing effects.
2008-12-18Xming, Cygwin/X: Tidy up warnings, headers and unused variables (#11132)Colin Harrison1-7/+3
Tidy up various warnings, include headers and unused variables, etc. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2008-07-24Shape extension is built-in and mandatory.Adam Jackson1-2/+0
2006-12-11Fix Tooltip from minimized clientsAlan Hourihane1-4/+3
Bug #3678 (Colin Harrison)
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-1/+0
2005-07-04Include xwin-config.h if HAVE_XWIN_CONFIG is defined Cleanup X11 includesAlexander Gottwald1-0/+3
handling Warning fixes
2005-06-08Fix crash reported by Øyvind HarboeAlexander Gottwald1-0/+5
2005-03-07Prevent winRaiseWindow from calling ConfigureWindow if the message was sentAlexander Gottwald1-1/+7
from within winDestroyWindowsWindow DestroyWindow send a WM_WINDOWPOSCHANGED to another window causing a restacking of all windows, even of the window which is just about to destroyed and whose structures may not be intact anymore.
2005-02-12win.hAlexander Gottwald1-39/+69
winfont.c winmultiwindowshape.c winmultiwindowwindow.c winpfbdd.c winshaddd.c winshadddnl.c winshadgdi.c Fix incorrect wrapping of functions. Ensure the pointers from pScreen point to the called function even if wrapped functions changed it Set the window properties to NULL to avoid referencing freed memory because of timing problems after deleting a window Do not wrap ChangeWindowAttributes. All functions are noops currently
2005-01-31winmultiwindowwindow.cAlexander Gottwald1-1/+1
Create windows with SWP_NOACTIVATE flag (updated) (Kensuke Matsuzaki) Fixes for window ordering problem (updated) (Kensuke Matsuzaki)
2005-01-12winmsg.cAlexander Gottwald1-4/+4
Introduce function winTrace which prints log message with verbosity 10 Use winTrace for 3 heavily called functions
2004-12-05redone ddraw.h to be able to mix it with w32api style COM header files.Alexander Gottwald1-3/+19
obj_base.h is not needed anymore. Using <objbase.h> instead. Use Xwindows.h instead of windows.h do not include win_ms.h remove extra definition of sleep() Set HOME to Documents and Settings/username if not set Use Xming basedir instead of ProjectRoot for system.XWinrc Fix callback functions to use wBOOL instead of BOOL Fix compiler warnings. Added debug output. Fix warning about undefined macro max
2004-11-29Fixed windows.h include for cygwin.Alexander Gottwald1-1/+2
Bugzilla #1945: Stop unnecessary reordering.
2004-11-15Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 AddedAlexander Gottwald1-1/+2
mingw (Win32) port
2004-11-06Wrap all mwextwm and internalwm code with XWIN_MULTIWINDOWEXTWMAlexander Gottwald1-0/+6
2004-11-04Add InternalWM mode.Kensuke Matsuzaki1-5/+23
2004-06-21Bug 777: Merge from CYGWIN branchAlexander Gottwald1-156/+264
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsEgbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksKaleb Keithley1-992/+280
2003-11-14Initial revisionKaleb Keithley1-0/+1574