mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
Update with changes from source (commit bcb1d791).
This commit is contained in:
@@ -2211,6 +2211,7 @@ pointer_button(void *data,
|
|||||||
else if (state == WL_POINTER_BUTTON_STATE_RELEASED) {
|
else if (state == WL_POINTER_BUTTON_STATE_RELEASED) {
|
||||||
switch (frame_gtk->active->type) {
|
switch (frame_gtk->active->type) {
|
||||||
case HEADER:
|
case HEADER:
|
||||||
|
libdecor_frame_ref(&frame_gtk->frame);
|
||||||
switch (frame_gtk->hdr_focus.type) {
|
switch (frame_gtk->hdr_focus.type) {
|
||||||
case HEADER_MIN:
|
case HEADER_MIN:
|
||||||
if (minimizable(frame_gtk))
|
if (minimizable(frame_gtk))
|
||||||
@@ -2221,18 +2222,11 @@ pointer_button(void *data,
|
|||||||
toggle_maximized(&frame_gtk->frame);
|
toggle_maximized(&frame_gtk->frame);
|
||||||
break;
|
break;
|
||||||
case HEADER_CLOSE:
|
case HEADER_CLOSE:
|
||||||
#ifdef DONT_APPLY_FLTK_CHANGES
|
|
||||||
if (closeable(frame_gtk))
|
|
||||||
libdecor_frame_close(
|
|
||||||
&frame_gtk->frame);
|
|
||||||
#else
|
|
||||||
if (closeable(frame_gtk)) {
|
if (closeable(frame_gtk)) {
|
||||||
libdecor_frame_close(
|
libdecor_frame_close(
|
||||||
&frame_gtk->frame);
|
&frame_gtk->frame);
|
||||||
seat->pointer_focus = NULL;
|
seat->pointer_focus = NULL;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -2243,6 +2237,7 @@ pointer_button(void *data,
|
|||||||
draw_title_bar(frame_gtk);
|
draw_title_bar(frame_gtk);
|
||||||
libdecor_frame_toplevel_commit(&frame_gtk->frame);
|
libdecor_frame_toplevel_commit(&frame_gtk->frame);
|
||||||
}
|
}
|
||||||
|
libdecor_frame_unref(&frame_gtk->frame);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -2610,4 +2605,8 @@ libdecor_plugin_description = {
|
|||||||
.description = "GTK3 plugin",
|
.description = "GTK3 plugin",
|
||||||
.priorities = priorities,
|
.priorities = priorities,
|
||||||
.constructor = libdecor_plugin_new,
|
.constructor = libdecor_plugin_new,
|
||||||
|
.conflicting_symbols = {
|
||||||
|
"png_free",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user