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 user32: Merge the AcquireClipboard and EmptyClipboard driver entry points. 2015-06-03 18:46:53 +09:00
cocoa_app.h winemac: Restore a maximized window if a user tries to move it by dragging its title bar. 2015-03-24 13:55:34 +09:00
cocoa_app.m winemac: Tell Wine when Cocoa brought a clicked window forward even if it sent the click event. 2015-08-13 15:04:35 +09:00
cocoa_clipboard.m
cocoa_display.m
cocoa_event.h
cocoa_event.m winemac.drv: Always initialize a closure-captured object pointer. 2015-02-02 22:27:42 +09:00
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 winemac: Restore a maximized window if a user tries to move it by dragging its title bar. 2015-03-24 13:55:34 +09:00
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 gdi32: Added GetFontRealizationInfo() export. 2015-09-01 19:28:16 +09:00
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 winemac: Cleanup system tray icons when their owner is destroyed instead of polling. 2015-03-31 14:46:52 +09:00
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 user32: Merge the AcquireClipboard and EmptyClipboard driver entry points. 2015-06-03 18:46:53 +09:00