mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
Wayland: improve support of draggable subwindow (related to #1307)
This commit is contained in:
@@ -1517,6 +1517,7 @@ void Fl_Wayland_Window_Driver::makeWindow()
|
|||||||
wait_for_expose_value = 0;
|
wait_for_expose_value = 0;
|
||||||
pWindow->border(0);
|
pWindow->border(0);
|
||||||
checkSubwindowFrame(); // make sure subwindow doesn't leak outside parent
|
checkSubwindowFrame(); // make sure subwindow doesn't leak outside parent
|
||||||
|
if (can_expand_outside_parent_) parent->covered = true; // for #1307
|
||||||
|
|
||||||
} else { // a window without decoration
|
} else { // a window without decoration
|
||||||
new_window->kind = UNFRAMED;
|
new_window->kind = UNFRAMED;
|
||||||
@@ -1956,7 +1957,9 @@ void Fl_Wayland_Window_Driver::resize(int X, int Y, int W, int H) {
|
|||||||
wl_callback_destroy(fl_win->frame_cb);
|
wl_callback_destroy(fl_win->frame_cb);
|
||||||
fl_win->frame_cb = NULL;
|
fl_win->frame_cb = NULL;
|
||||||
}
|
}
|
||||||
if (parent_xid->buffer) Fl_Wayland_Graphics_Driver::buffer_commit(parent_xid);
|
if (parent_xid->buffer && !parent_xid->frame_cb) {
|
||||||
|
Fl_Wayland_Graphics_Driver::buffer_commit(parent_xid);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(parent && parent->damage()) && !parent_xid->frame_cb) {
|
if (!(parent && parent->damage()) && !parent_xid->frame_cb) {
|
||||||
// use the frame callback mechanism and memorize current X,Y,W,H values
|
// use the frame callback mechanism and memorize current X,Y,W,H values
|
||||||
|
|||||||
Reference in New Issue
Block a user