Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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
|
|
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...
|
|
|
|
|
|
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)
|
|
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().
|
|
You must own the Windows clipboard to enumerate the formats it contains.
|
|
|
|
Check specially that setjmp() returned a value which we don't pass to longjmp()
seems a bit over-complex.
|
|
|
|
|
|
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
|
|
|
|
Add xwinclip test client, which includes stubs for winDebug(), ErrorF()
|
|
XXX: see what I've done in wmutil with ErrorF and do the same?
|
|
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.
|
|
Add fUseUnicode as parameter to winClipboardProc()
Access g_fUseUnicode global when calling it
|
|
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
|
|
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.
|
|
Move clipboard integration code down to a subdirectory and build as a
convenience library
|
|
Move winFixClipboardChain() into winclipboardthread.c
Add winCLipboardWindowDestroy() function to access it for WM_DESTROY
|
|
|
|
|
|
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.
|
|
Move winClipboardCreateMessagingWindow() from winclipboardinit.c to
winclipboardthread.c, the only place that uses it, and make it static.
|
|
instead
Use the XFixesSetSelectionNotify event instead of a SetSelectionOwner wrapper,
the completely equivalent client-side mechanism.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
Push winClipboardShutdown() into winclipboardinit.c
This lets us make g_ptClipboardProc static
|
|
We are not an X clipboard manager, so remove the unused CLIPBOARD_MANAGER atom
|
|
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.
|
|
|
|
Remove unneeded forward declaration of winProcessXEventsTimeout(), the actual
definition immediately follows.
|
|
|
|
|
|
Unused since 47c7b6d3e626497747ae2780f259a15b8e6c846f "Remove no-longer needed
tricks used to prevent the clipboard client from being killed"
|
|
Check for python at configure time when building XWin with AIGLX, it's used
to generate the wrapper code for native GL functions.
|
|
Check that we don't overrun the end of the property data while converting icons
Also, some warning fixes in winXIconToHICON()
|
|
|
|
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.
|
|
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"
|
|
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.
|
|
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.
|
|
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.
|
|
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]
|
|
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()
|
|
/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,
^
|