summaryrefslogtreecommitdiff
path: root/hw/xwin
AgeCommit message (Collapse)AuthorFilesLines
2013-06-20Merge branch 'clipboard-64bit-fix' into cygwin-release-1.14xserver-cygwin-1.14.1-2Jon TURNEY20-695/+845
2013-06-20Undefine _XSERVER64clipboard-64bit-fixJon TURNEY6-2/+47
Including any server header might define the macro _XSERVER64 on 64 bit machines. That macro must _NOT_ be defined for Xlib client code, otherwise bad things happen. So let's undef that macro if necessary. Remove server directories from include path to ensure no server includes are included
2013-06-20Only add to XSetIOErrorHandler() handler chain onceJon TURNEY1-3/+9
Only use XSetIOErrorHandler() to add to the global XSetIOErrorHandler() chain once. If we do it every restart, then we make a loop in the handler chain, and we end up with a thread spinning in that loop when the server shuts down...
2013-06-20Add a basic manpage for xwinclipJon TURNEY2-0/+64
2013-06-20In clipboard function prototypes, use Window type, not int typeJon TURNEY3-3/+3
2013-06-20Remove obsolete WIN_XEVENTS_SHUTDOWNJon TURNEY2-9/+2
Remove obsolete WIN_XEVENTS_SHUTDOWN. This event is never generated. (I think the idea was to listen for WM_DELETE_WINDOW, but that's not a very useful thing to do)
2013-06-20Remove XOpenDisplay() retry codeJon TURNEY1-19/+1
Remove XOpenDisplay() retry code. This isn't a sensible thing for the application to be doing, and XWin server needs to retry much more than just XOpenDisplay().
2013-06-20Take Windows clipboard ownership when trying to enumerate formatsJon TURNEY1-1/+8
You must own the Windows clipboard to enumerate the formats it contains.
2013-06-20Improve comment about why we can't XCloseDisplay()Jon TURNEY1-2/+5
2013-06-20Remove setjmp()/longjmp() error constantsJon TURNEY2-14/+2
Check specially that setjmp() returned a value which we don't pass to longjmp() seems a bit over-complex.
2013-06-20Move WIN_MSG_QUEUE_FNAME to where it's usedJon TURNEY2-5/+3
2013-06-20Use header for prototypes in textconv.cJon TURNEY1-7/+1
2013-06-20Remove unused X includes from internal.h and add them where neededJon TURNEY4-12/+11
Also removing server headers we might clash with and no longer need. Make a few adjustments to allow for this change: - provide a prototype of ErrorF() - use the MAX() macro provided by sys/param.h, not the max() macro provided by misc.h - use the X 'Bool' type rather than the unwrapped Windows 'BOOL' type
2013-06-20Remove standard includes from internal.h and add them where neeededJon TURNEY2-17/+9
2013-06-20Add xwinclip test clientJon TURNEY3-0/+178
Add xwinclip test client, which includes stubs for winDebug(), ErrorF()
2013-06-20Changes in error logging to make libwinclipboard useful as a libraryJon TURNEY1-31/+25
XXX: see what I've done in wmutil with ErrorF and do the same?
2013-06-20Look up atoms in winClipboardProc()Jon TURNEY4-50/+50
Look up all atoms of interest in clipboard code in winClipboardProc() and pass them down. This avoids the need to check serverGeneration to notice when we need to invalidate cached atom values. Also consistently use cached atom values everywhere, rather than sometimes just doing XInternAtom() again. Remove WIN_LOCAL_PROPERTY as unused now, as we only refer to CYGX_CUT_BUFFER once and do that directly.
2013-06-20Add fUseUnicode as parameter to winClipboardProc()Jon TURNEY3-18/+3
Add fUseUnicode as parameter to winClipboardProc() Access g_fUseUnicode global when calling it
2013-06-20Separate libwinclipboard interface and internal header filesJon TURNEY8-149/+168
Rename the libwinclipboard internal header from winclipboard.h to internal.h Put libwinclipboard's public interface into winclipboard.h This lets winclipboardinit.c partake of that public interface, and all X server headers without lashes winInitClipboard() prototype belongs in a server header
2013-06-20Return a shutdown flag from winClipboardProc() if we should stop tryingJon TURNEY3-8/+15
Return a shutdown flag from winClipboardProc(), and use it in winClipboardThreadProc() to determine if we should stop. Currently this is set if the clipboard messaging window received a WM_QUIT.
2013-06-20Move clipboard integration code down to a subdirectoryJon TURNEY8-12/+24
Move clipboard integration code down to a subdirectory and build as a convenience library
2013-06-20Make g_hwndClipboard staticJon TURNEY4-24/+23
Move winFixClipboardChain() into winclipboardthread.c Add winCLipboardWindowDestroy() function to access it for WM_DESTROY
2013-06-20Add remaining clipboard globals to winglobals.hJon TURNEY2-7/+3
2013-06-20Hoist use of winSetAuthorization() and winGetDisplayName() up one levelJon TURNEY3-24/+23
2013-06-20Eliminate g_pClipboardDisplay and g_iClipboardWindow globalsJon TURNEY4-30/+23
Eliminate the g_pClipboardDisplay and g_iClipboardWindow globals used to make those values available to the clipboard wndproc, by passing them in via the WM_CREATE message instead.
2013-06-20Move winClipboardCreateMessagingWindow() to winclipboardthread.cJon TURNEY3-53/+55
Move winClipboardCreateMessagingWindow() from winclipboardinit.c to winclipboardthread.c, the only place that uses it, and make it static.
2013-06-20Remove SetSelectionOwner wrapper, use XFixesSetSelectionOwnerNotify event ↵Jon TURNEY9-245/+196
instead Use the XFixesSetSelectionNotify event instead of a SetSelectionOwner wrapper, the completely equivalent client-side mechanism.
2013-06-20Remove g_fClipboardLaunched, it's value is identical to g_fClipboardStartedJon TURNEY2-6/+1
2013-06-20Hoist setting of g_fClipboardStarted flag up one levelJon TURNEY2-7/+5
Hoist the setting of g_fClipboardStarted flag up one level. Also move up the clearing of the g_fClipboardLaunched at the end of clipboard function.
2013-06-20winProcEstablishConnection doesn't need to check if clipboard startedJon TURNEY1-8/+0
winProcEstablishConnection doesn't need to check if clipboard has already been started. It should be clear that we start the thread only once when the wrapper tells us to, as the wrapper unhooks itself thereafter.
2013-06-20Hoist clipboard thread restart up one levelJon TURNEY4-39/+43
Hoist clipboard thread restart up one level. Note that currently g_fClipboardLaunched is set the first time in the winProcEstablishConnection wrapper, and subsequent times when the clipboard thread restarts itself. Try to clarify this and just set g_fClipboardLaunched before starting the thread.
2013-06-20Push winClipboardShutdown() into winclipboardinit.cJon TURNEY4-42/+34
Push winClipboardShutdown() into winclipboardinit.c This lets us make g_ptClipboardProc static
2013-06-20Remove unused CLIPBOARD_MANAGER atomJon TURNEY1-2/+1
We are not an X clipboard manager, so remove the unused CLIPBOARD_MANAGER atom
2013-06-20Remove pthread_cleanup function winClipboardThreadExit()Jon TURNEY1-17/+0
It's never used anymore as the pthread_exit() calls which used to cause it to be invoked have been removed. Taking the server down if the clipboard thread happens to exit is kind of rude, anyhow.
2013-06-20Remove unused extern g_fUseUnicode from winclipboardwndproc.cJon TURNEY1-1/+0
2013-06-20Remove unneeded forward declaration of winProcessXEventsTimeout()Jon TURNEY1-10/+0
Remove unneeded forward declaration of winProcessXEventsTimeout(), the actual definition immediately follows.
2013-06-20Remove prototype for non-existent winDeinitClipboard()Jon TURNEY1-3/+0
2013-06-20Remove unused externs from winclipboardwrappers.cJon TURNEY1-2/+0
2013-06-20Remove unused winProcQueryTreeOrig variableJon TURNEY3-3/+0
Unused since 47c7b6d3e626497747ae2780f259a15b8e6c846f "Remove no-longer needed tricks used to prevent the clipboard client from being killed"
2013-06-18Check for python at configure time when building XWin with AIGLXJon TURNEY1-2/+2
Check for python at configure time when building XWin with AIGLX, it's used to generate the wrapper code for native GL functions.
2013-06-16Improve NET_WM_ICON validationJon TURNEY1-8/+19
Check that we don't overrun the end of the property data while converting icons Also, some warning fixes in winXIconToHICON()
2013-06-16Avoid a null deference if CreateDIBSection() fails in NetWMToWinIconAlpha()Jon TURNEY1-0/+4
2013-05-04Fix a potential crash on startupYaakov Selkowitz1-4/+1
Change btn_labels in winMouseProc() from a dynamic allocation of potentially the wrong size (if GetSystemMetrics(SM_CMOUSEBUTTONS) is less than 5) to a fixed one on stack, of the required size for all the labels we create.
2013-04-10Fix version reporting on cygwin64Jon TURNEY1-12/+19
DWORD is a long int on 32-bit, but just an int on 64-bit, so cast to (int) and use %d to output Checking for Wow32 isn't interesting on Win64 This is a follow-up patch to "Tidy up OS version detection and reporting"
2013-04-10Fix several format/type cast issues with debug output in winwindowswm.cJon TURNEY1-3/+3
Serveral pieces of debug outut under CYGMULTIWINDOW_DEBUG cast a pointer to an (int) and then use a %08x printf format. Use "%p" format for 64-bit portability.
2013-04-10Fix several format/type cast issues with debug output in ↵Jon TURNEY1-7/+7
winwin32rootlesswndproc.c Serveral pieces of debug outut under CYGMULTIWINDOW_DEBUG cast a pointer to an (int) and then use a %08x printf format. Use "%p" format for 64-bit portability.
2013-04-10Fix numerous format/type cast issues with debug output in winwin32rootless.cJon TURNEY1-22/+22
Numerous pieces of debug outut under CYGMULTIWINDOW_DEBUG cast a pointer to an (int) and then use a %08x printf format. Use "%p" format for 64-bit portability.
2013-04-10Fix implicit-function-declaration warning in XwinExtensionInit() when ↵Yaakov Selkowitz1-0/+3
compiled with XWIN_GLX_WINDOWS defined InitOutput.c: In function ‘XwinExtensionInit’: InitOutput.c:170:9: error: implicit declaration of function ‘glxWinPushNativeProvider’ [-Werror=implicit-function-declaration] glxWinPushNativeProvider(); ^ InitOutput.c:170:9: warning: nested extern declaration of ‘glxWinPushNativeProvider’ [-Wnested-externs]
2013-04-10Bodge around issues with using XSendEvent() to send a ClientMessageJon TURNEY1-0/+21
The XEvent type suffers from the XSERVER64 issues noted previously: certain members are long int in Xlib, but are made int in the server by XSERVER64. Bodge around this problem by defining our own type with the correct memory layout to match Xlib's idea of XClientMessageEvent for use in SendXMessage()
2013-04-09Fix -Werror=implicit-function-declaration when configured --enable-debugJon TURNEY1-0/+1
/jhbuild/checkout/xorg/xserver/hw/xwin/winclipboardwndproc.c: In function ‘winClipboardWindowProc’: /jhbuild/checkout/xorg/xserver/hw/xwin/winclipboardwndproc.c:159:5: error: implicit declaration of function ‘winDebugWin32Message’ [-Werror=implicit-function-declaration] winDebugWin32Message("winClipboardWindowProc", hwnd, message, wParam, ^