Sweden-Number/dlls/winemac.drv
Ken Thomases 9372af77a5 winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change.
When the display mode changes such that the screen height changes, we'd like
our windows to keep their position relative to the top-left of the primary
screen.  That's how WinAPI's coordinate system works and we want the WinAPI
position of the window to not change just because the display mode changed.

Unfortunately that's not achievable in Cocoa.  Cocoa keeps the window
stationary relative to the screen it's on, not necessarily the primary screen,
and it's sometimes relative to the bottom-left and sometimes the top-left of
that screen.

So, what we do instead is queue an event to get the back end to reassert the
WinAPI position of the window.  This is queued before Cocoa can adjust the
Cocoa position of the window which would queue a WINDOW_FRAME_CHANGED to the
back end and mess up the WinAPI position.  The back end's reassertion of the
WinAPI position won't be processed by the Cocoa thread until after Cocoa has
adjusted the position and will thus override it.  It will also discard any
wrong WINDOW_FRAME_CHANGED that may have been queued.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
2015-10-06 17:21:01 +09:00
..
.gitattributes
Makefile.in
clipboard.c
cocoa_app.h
cocoa_app.m
cocoa_clipboard.m
cocoa_display.m
cocoa_event.h
cocoa_event.m
cocoa_main.m
cocoa_opengl.h
cocoa_opengl.m winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
cocoa_status_item.m
cocoa_window.h
cocoa_window.m winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
display.c
dragdrop.c
event.c winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
gdi.c
image.c
ime.c
keyboard.c
macdrv.h winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
macdrv_cocoa.h winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
macdrv_main.c winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
mouse.c
opengl.c winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
surface.c
systray.c
window.c winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
winemac.drv.spec