winex11.drv: Make all windows moveable by default.
This commit is contained in:
parent
a0db724a5e
commit
ac387bbe13
|
@ -532,13 +532,11 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
|
|||
}
|
||||
|
||||
mwm_hints.flags = MWM_HINTS_FUNCTIONS | MWM_HINTS_DECORATIONS;
|
||||
mwm_hints.functions = 0;
|
||||
if ((style & WS_CAPTION) == WS_CAPTION) mwm_hints.functions |= MWM_FUNC_MOVE;
|
||||
if (style & WS_THICKFRAME) mwm_hints.functions |= MWM_FUNC_MOVE | MWM_FUNC_RESIZE;
|
||||
mwm_hints.functions = MWM_FUNC_MOVE;
|
||||
if (style & WS_THICKFRAME) mwm_hints.functions |= MWM_FUNC_RESIZE;
|
||||
if (style & WS_MINIMIZEBOX) mwm_hints.functions |= MWM_FUNC_MINIMIZE;
|
||||
if (style & WS_MAXIMIZEBOX) mwm_hints.functions |= MWM_FUNC_MAXIMIZE;
|
||||
if (style & WS_SYSMENU) mwm_hints.functions |= MWM_FUNC_CLOSE;
|
||||
if (ex_style & WS_EX_APPWINDOW) mwm_hints.functions |= MWM_FUNC_MOVE;
|
||||
mwm_hints.decorations = 0;
|
||||
if ((style & WS_CAPTION) == WS_CAPTION)
|
||||
{
|
||||
|
|
|
@ -1537,6 +1537,8 @@ static void X11DRV_WMMoveResizeWindow( HWND hwnd, int x, int y, int dir )
|
|||
XEvent xev;
|
||||
Display *display = thread_display();
|
||||
|
||||
TRACE("hwnd %p, x %d, y %d, dir %d\n", hwnd, x, y, dir);
|
||||
|
||||
xev.xclient.type = ClientMessage;
|
||||
xev.xclient.window = X11DRV_get_whole_window(hwnd);
|
||||
xev.xclient.message_type = x11drv_atom(_NET_WM_MOVERESIZE);
|
||||
|
@ -1594,6 +1596,9 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
|
|||
|
||||
if (!(data = X11DRV_get_win_data( hwnd ))) return;
|
||||
|
||||
TRACE("hwnd %p (%smanaged), command %04x, hittest %ld, pos %ld,%ld\n",
|
||||
hwnd, data->managed ? "" : "NOT ", syscommand, hittest, pt.x, pt.y);
|
||||
|
||||
/* if we are managed then we let the WM do all the work */
|
||||
if (data->managed)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue