summaryrefslogtreecommitdiff
path: root/hw/xwin
AgeCommit message (Collapse)AuthorFilesLines
2009-07-29Xming: Use RegisterClassEx() instead of superseded RegisterClass()Colin Harrison2-8/+18
RegisterClass is supserseded by RegisterClassEx, so change to using that everywhere Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-29Xming: Use GetClassLongPtr() instead of superseded GetClassLong()Colin Harrison1-3/+3
GetClassLong() is superseded by GetClassLongPtr(), so change to using that
2009-07-28Cygwin/X: use GWLP_WNDPROC, GWLP_USERDATA with Get/SetWindowLongPtrColin Harrison1-5/+5
Missed from commit b3751454cbe02ee952bab213e8c3684d429c41b3 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-26Cygwin/X: Update Get/SetWindowLong() to Get/SetWindowLongPtr() everywhereColin Harrison3-15/+15
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-14xwin: switch to byte counting functionsPeter Hutterer1-8/+6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-07Cygwin/X: Window positioning improvements for multiwindow modeJon TURNEY1-10/+24
A few tweaks to winUpdateWindowPosition(): * Don't allow window decoration to disappear off to top or left edge of the display as a result of adjustments to add decoration for the window style * Honour the position requested by window geometry for the client area (so windows which save their position don't get moved by the decoration width every time they are created) (unless we need to bump it away from top or left edges) * Fix an issue with initial window placement being offscreen on multimonitor systems when some monitors have negative coordinates (are to the left of or above the primary monitor) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-07-03Xming: Apply window style hints in -multiwindow modeColin Harrison3-68/+266
Remove frames from 'dock' windows and make them topmost in -multiwindow mode. Remove frames from windows with MOTIF_WM_HINTS of no decorations in -multiwindow mode. Apply some _NET_WM_STATE hints in -multiwindow mode. Apply window styles overrides from .rc file Correctly update region of shaped windows when applying styles Copyright (C) Colin Harrison 2005-2009 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/
2009-07-03Cygwin/X: Change to a single native window class for all X windowsJoe Krahn2-92/+56
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-06-29Cygwin/X: Fix multiwindow extwm mode to build againJon TURNEY4-25/+10
Build and link with rootless extension Update Xwin code for removal of RootlessAccelInit() Fix Xwin code which now has a collision with the type name EventType Based on patches from Colin Harrison, Jon Turney and Yaakov Selkowitz Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-29Cygwin/X: Avoid a visual glitch on window move in rootless modesJon TURNEY2-0/+19
Handle and ignore WM_ERASEBKGND since we repaint the entire invalidated region anyhow (this avoids a white flickering on window resize) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-29Cygwin/X: Allow pointer warping to work in rootless modesJon TURNEY1-2/+10
Mouse pointer warping in multiwindow/rootless mode was never implemented, due to concerns that moving the mouse pointer without asking might be rude This patch allows X applications to move the mouse pointer in rootless modes, Let's hope they don't abuse this privilege ;-) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-29Cygwin/X: Improve mouse tracking for moving/resizing undecorated windowsJon TURNEY1-22/+37
In -multiwindow mode, tell Windows we wish to capture the mouse when a button is down. This causes Windows to continue to send movement events for the mouse even if the mouse pointer moves outside the window frame. This helps greatly with undecorated windows which have regions you can grab to move (e.g. gmplayer, xine control panels) or resize (e.g. Songbird) the window, as it means the window continues to receive the mouse motion even if the mouse pointer moves out of the window (which presumably happens if we don't manage to update the window fast enough to track the mouse pointer) Consolidate the multiple instances of the code to start the mouse position polling timer into a new function winStartMousePolling(), and use that to restart the polling timer when we release the mouse. Also, start the timer on WM_SHOW, so that xeyes will track the mouse position when it is first shown, even if the mouse doesn't enter it's window (You probably need focus-stealing turned off to see this problem) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-29Cygwin/X: Man page fixesYaakov Selkowitz3-18/+39
Correct path names in man pages, using cpprules.in Install XWinrc man page into section 5 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-23Cygwin/X: add hebrew to autodetected keyboard layoutsYaakov Selkowitz1-0/+1
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-23Cygwin/X: more warnings fixesJon TURNEY4-32/+31
More warning fixes, mainly removing casts on function return values Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-23Cygwin/X: Remove an obsolete mention of xf86ConfigJon TURNEY1-1/+1
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-17Cygwin/X: Fix permuted args to InitPointerDeviceStruct()Jon TURNEY1-1/+1
Fix a minor error in commit a30fef9956b296f59ea18a9ee38d0abafeb15a4e, new btn_labels argument to InitPointerDeviceStruct() wasn't added in the right place
2009-06-18input: Add labels to buttons and valuators - ABI_XINPUT_VERSION 7Peter Hutterer1-1/+19
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-10Xming: Simplify logic for ownership release of native clipboardColin Harrison1-9/+3
Make the logic simpler for the ownership release of the Windows clipboard in winclipboardwrappers.c - We've already marked a selection as unowned if it is owned by our clipboard window Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-10Cygwin/X: Add a needed inputstr.hJon TURNEY1-0/+1
Add a needed inputstr.h to fix build after commit 6d4ffcc9e066bc7c49dcff1a2ff0111801c7286d Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-05Cygwin/X: Remove obsolete ChangeLog filesJon TURNEY3-748/+0
Remove obsolete ChangeLog files, this information is preserved in the automatically generated top-level ChangeLog
2009-06-05Cygwin/X: Tidy up a bodge to avoid collision between X header and native ↵Jon TURNEY2-16/+2
Win32 API definitions of ATOM Remove a bodge to avoid collision between X header and the native Win32 API definitions of ATOM, use X11/Xwindows.h which exists to address these issues Consequently, include misc.h in winclipboardthread.c, to provide the max() macro, as previously we were using the the one from windows.h Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-03s/MIN/min/, s/MAX/max/ (#2968)Adam Jackson1-7/+3
2009-05-27Cygwin/X: Update icons directly, rather than modifying the window's classJoe Krahn3-53/+44
Update icons directly to windows rather than modifying the window's class. Respect custom icons overriden via the configuration file. fd.o bugzilla #4491 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Cygwin/X: Remove unused TimeSinceLastInputEvent()Jon TURNEY3-12/+0
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Fix some log spamColin Harrison1-0/+2
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Various tidy ups in winClipboardFlushXEvents()Colin Harrison1-0/+17
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Avoid log spam if a windows application won't provide CF_UNICODETEXT ↵Colin Harrison1-2/+7
clipboard format Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Cache atom lookups in clipboard integration codeColin Harrison2-25/+28
Cache the CLIPBOARD atom lookups in winClipboardWindowProc() Cache atom lookups in winClipboardFlushXEvents() Recache on server regeneration Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Prevent the mouse wheel from stalling when another window is minimized.Colin Harrison1-0/+4
Fix internal WM to prevent the mouse wheel from stalling when another window is minimized. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Cygwin/X: Correctly allow for the native window frame width in ValidateSizing()Jon TURNEY1-9/+12
Fix internal WM to correctly calculate the native window border when validating window sizing Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Cygwin/X: Consolidate dialog initialization in winInitDialog()Joe Krahn1-66/+50
Changed windialogs.c to set icons via window properties rather than class properties, and use LoadImage() for small icons, because LoadIcon() can only open large icons. Since this code is redundant across the dialogs, I put it in the winCenterDialog function, along with a few other redundant instructions, and renamed in winInitDialog(). Also, don't bogusly put our dialogs at the center of the virtual desktop if we are on a multimonitor system (this causes the dialog to end up split across two monitors in a dual-monitor side-by-side setup) Corrections to use HWND_TOPMOST instead of HWND_TOP and not to use SWP_NOZORDER from Colin Harrison fd.o bugzilla #4491 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-27Xming: Slightly adjust the formatting of the logged command lineColin Harrison1-3/+3
Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-05-18Cygwin/X: link with libmain.a to provide main()Jon TURNEY1-1/+1
Commit 987579c930bda803427a28cb82773c389f5110d6 moves main.c into into libmain.a to be linked with separately, and updates the various DDXs to link with libmain.a, except Xwin, which also needs this change. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-22Cygwin/X: Fix keyboard layout mapping for Latin American keyboardsJon TURNEY1-1/+1
Fix keyboard layout mapping table entry for Windows keyboard layout 0x80a (Latin American), layout should (now) be 'latam', not 'la' which is Laos Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Update keyboard layouts mapping tableColin Harrison1-3/+18
An update to the keyboard layout mapping table which updates some no longer valid keyboard layout names (e.g. de_CH -> ch -variant de) and adds a few more reported layouts Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Check clipboard selection ownership after taking itColin Harrison2-4/+12
When you take ownership of a selection you should always check you got it (X11 ICCCM gospel). Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Fix a memory leak in clipboard integration codeColin Harrison1-0/+2
Free the memory allocated for ReturnData in FlushXEvents(). Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Fix prototype for winProcessXEventsTimeout() in clipboard integration ↵Colin Harrison1-1/+1
code Function 'winProcessXEventsTimeout()' is declared 'static Bool' and defined 'static int' (correct) in 'winclipboardwndproc.c'. This has been wrong since dot, but luckily was of no significance Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Improve clipboard integration startup in XDMCP modeColin Harrison1-8/+13
Improve clipboard integration startup in XDMCP mode Stop the "Clipboard not yet started, aborting" message from spamming the log. Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Select events correctly in clipboard integration codeColin Harrison1-9/+7
The clipboard should only select PropertyChange events and do this on the correct window, the messaging window for the clipboard not the root window! Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Xming: Add Colin Harrison to copyright and authors list for clipboard ↵Colin Harrison4-16/+24
integration files Add Colin Harrison to copyright and authors list Adjust license text for multiple authors Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Cygwin/X: Place prototype for winSelectIcons() in a header fileJon TURNEY3-5/+2
Fixes warning as prototype is now in scope for the definition Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Cygwin/X: Place prototypes for winCheckKeyPressed() and winFixShiftKeys() in ↵Jon TURNEY2-4/+5
a header file Fixes warnings as they are now in scope at the definition Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12cygwin/X: Remove an unused variable to fix a warningJon TURNEY1-2/+0
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Cygwin/X: Fix several prototypes to return HICONJon TURNEY5-16/+16
Fix prototypes of winOverrideIcon(), winTaskbarIcon() and winOverrideDefaultIcon() to return HICON Also use HICON type in WINPREFS stucture Remove various casts these changes make unnecessary Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-12Cygwin/X: Fix -Wold-style-definition warningsJon TURNEY9-15/+15
Fix old-style definition warnings caused by definitions with empty parameter lists "()", which should be "(void)" to indicate the function takes no parameters, rather than unspecified parameters Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-02-02Cygwin/X: Fix compilation for mandatory XKBJon TURNEY4-87/+30
Fix a stray '}' Update to use RMLVO interface Remove g_winInfo.xkb.disable, can never be set since noXkbExtension has been removed Change to retrieve modifier key state using XkbStateFieldFromRec() from Colin Harrison Update to use XKB defaults from xkb-config.h Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-22Input: Remove modifierMap from coreDaniel Stone1-5/+1
We already have modmap (in the exact same format!) in XKB, so just use that all the time, instead of duplicating the information. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>