forked from AuroraMiddleware/gtk
broadway: Don't crash of drag-resizing when already active
This is what the X11 code does.
This commit is contained in:
parent
890b759091
commit
3bbbe9f71b
@ -1232,6 +1232,9 @@ gdk_broadway_surface_begin_resize_drag (GdkSurface *surface,
|
||||
|
||||
mv_resize = get_move_resize_data (gdk_surface_get_display (surface), TRUE);
|
||||
|
||||
if (mv_resize->moveresize_surface != NULL)
|
||||
return; /* already a drag operation in progress */
|
||||
|
||||
mv_resize->is_resize = TRUE;
|
||||
mv_resize->moveresize_button = button;
|
||||
mv_resize->resize_edge = edge;
|
||||
@ -1270,8 +1273,13 @@ gdk_broadway_surface_begin_move_drag (GdkSurface *surface,
|
||||
if (impl->maximized)
|
||||
return;
|
||||
|
||||
g_print ("gdk_broadway_surface_begin_move_drag\n");
|
||||
|
||||
mv_resize = get_move_resize_data (gdk_surface_get_display (surface), TRUE);
|
||||
|
||||
if (mv_resize->moveresize_surface != NULL)
|
||||
return; /* already a drag operation in progress */
|
||||
|
||||
mv_resize->is_resize = FALSE;
|
||||
mv_resize->moveresize_button = button;
|
||||
mv_resize->moveresize_x = root_x;
|
||||
|
Loading…
Reference in New Issue
Block a user