• Ken Thomases's avatar
    winemac: Restore a maximized window if a user tries to move it by dragging its title bar. · 792b47ad
    Ken Thomases authored
    OS X doesn't have the same concept of maximized windows as Windows does.
    There's no mode that prevents a normally-movable window from being moved.  If
    a window is "zoomed", it mostly fills the screen but the user can still move
    or resize it, at which point it ceases to be in the zoomed state.  So, users
    are confused and frustrated when they can't move a window that's maximized.
    
    To get similar behavior while still respecting Win32 semantics, we detect when
    the user tries to move a maximized window.  When they start, a request is
    submitted to the app to restore the window.  Unless and until the window is
    restored, we don't actually allow the window to move.
    
    The user expects to move the window from its current (maximized) position.  It
    should not jump to its normal position upon being restored.  So, we set the
    window's normal position to its current position before restoring it.
    792b47ad
Name
Last commit
Last update
..
.gitattributes Loading commit data...
Makefile.in Loading commit data...
clipboard.c Loading commit data...
cocoa_app.h Loading commit data...
cocoa_app.m Loading commit data...
cocoa_clipboard.m Loading commit data...
cocoa_display.m Loading commit data...
cocoa_event.h Loading commit data...
cocoa_event.m Loading commit data...
cocoa_main.m Loading commit data...
cocoa_opengl.h Loading commit data...
cocoa_opengl.m Loading commit data...
cocoa_status_item.m Loading commit data...
cocoa_window.h Loading commit data...
cocoa_window.m Loading commit data...
display.c Loading commit data...
dragdrop.c Loading commit data...
event.c Loading commit data...
gdi.c Loading commit data...
image.c Loading commit data...
ime.c Loading commit data...
keyboard.c Loading commit data...
macdrv.h Loading commit data...
macdrv_cocoa.h Loading commit data...
macdrv_main.c Loading commit data...
mouse.c Loading commit data...
opengl.c Loading commit data...
surface.c Loading commit data...
systray.c Loading commit data...
window.c Loading commit data...
winemac.drv.spec Loading commit data...