Wayland: fix issue #492 - mark FLTK differences.

This commit is contained in:
ManoloFLTK 2022-09-02 09:44:43 +02:00
parent 2a3b4e1f2d
commit 16f660f676
2 changed files with 11 additions and 0 deletions

View File

@ -2374,10 +2374,15 @@ pointer_button(void *data,
toggle_maximized(&frame_cairo->frame);
break;
case BUTTON_CLOSE:
#ifdef DONT_APPLY_FLTK_CHANGES
if (closeable(frame_cairo))
libdecor_frame_close(&frame_cairo->frame);
#else
if (closeable(frame_cairo)) {
libdecor_frame_close(&frame_cairo->frame);
return;
}
#endif
break;
default:
break;

View File

@ -2221,11 +2221,17 @@ pointer_button(void *data,
toggle_maximized(&frame_gtk->frame);
break;
case HEADER_CLOSE:
#ifdef DONT_APPLY_FLTK_CHANGES
if (closeable(frame_gtk))
libdecor_frame_close(
&frame_gtk->frame);
#else
if (closeable(frame_gtk)) {
libdecor_frame_close(
&frame_gtk->frame);
return;
}
#endif
break;
default:
break;