mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01:00
More correctness fixes to fix compiler warnings.
This commit is contained in:
parent
cee516e142
commit
c50a40263b
4 changed files with 10 additions and 15 deletions
|
|
@ -464,7 +464,7 @@ void DarwinModeProcessEvent(
|
|||
|
||||
case kXDarwinWindowMoved:
|
||||
DEBUG_LOG("kXDarwinWindowMoved\n");
|
||||
RootlessNativeWindowMoved (xe->u.clientMessage.u.l.longs0);
|
||||
RootlessNativeWindowMoved ((WindowPtr)xe->u.clientMessage.u.l.longs0);
|
||||
break;
|
||||
|
||||
case kXDarwinToggleFullscreen:
|
||||
|
|
|
|||
|
|
@ -123,9 +123,9 @@ int QuartzFSUseQDCursor(
|
|||
* Clean out any autoreleased objects.
|
||||
*/
|
||||
void QuartzBlockHandler(
|
||||
void *blockData,
|
||||
void *pTimeout,
|
||||
void *pReadmask)
|
||||
pointer blockData,
|
||||
OSTimePtr pTimeout,
|
||||
pointer pReadmask)
|
||||
{
|
||||
static NSAutoreleasePool *aPool = nil;
|
||||
|
||||
|
|
@ -138,9 +138,9 @@ void QuartzBlockHandler(
|
|||
* QuartzWakeupHandler
|
||||
*/
|
||||
void QuartzWakeupHandler(
|
||||
void *blockData,
|
||||
pointer blockData,
|
||||
int result,
|
||||
void *pReadmask)
|
||||
pointer pReadmask)
|
||||
{
|
||||
// nothing here
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
#undef Cursor
|
||||
#undef WindowPtr
|
||||
#undef Picture
|
||||
#include <X11/Xdefs.h>
|
||||
|
||||
// Quartz specific per screen storage structure
|
||||
typedef struct {
|
||||
|
|
@ -87,8 +88,8 @@ void QuartzSetWindowMenu(int nitems, const char **items,
|
|||
void QuartzFSCapture(void);
|
||||
void QuartzFSRelease(void);
|
||||
int QuartzFSUseQDCursor(int depth);
|
||||
void QuartzBlockHandler(void *blockData, void *pTimeout, void *pReadmask);
|
||||
void QuartzWakeupHandler(void *blockData, int result, void *pReadmask);
|
||||
void QuartzBlockHandler(pointer blockData, OSTimePtr pTimeout, pointer pReadmask);
|
||||
void QuartzWakeupHandler(pointer blockData, int result, pointer pReadmask);
|
||||
|
||||
// Messages that can be sent to the main thread.
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -88,13 +88,7 @@ eventHandler(unsigned int type, const void *arg,
|
|||
{
|
||||
xp_window_id id = * (xp_window_id *) arg;
|
||||
WindowPtr pWin = xprGetXWindow(id);
|
||||
BoxRec box;
|
||||
xp_error retval = xp_get_window_bounds(id, &box);
|
||||
if (retval != Success) {
|
||||
ErrorF("Unable to find new bounds for window\n");
|
||||
break;
|
||||
}
|
||||
QuartzMessageServerThread(kXDarwinWindowMoved, 3, pWin, box.x1, box.y1);
|
||||
QuartzMessageServerThread(kXDarwinWindowMoved, 1, pWin);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue