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); toggle_maximized(&frame_cairo->frame);
break; break;
case BUTTON_CLOSE: case BUTTON_CLOSE:
#ifdef DONT_APPLY_FLTK_CHANGES
if (closeable(frame_cairo))
libdecor_frame_close(&frame_cairo->frame);
#else
if (closeable(frame_cairo)) { if (closeable(frame_cairo)) {
libdecor_frame_close(&frame_cairo->frame); libdecor_frame_close(&frame_cairo->frame);
return; return;
} }
#endif
break; break;
default: default:
break; break;

View File

@ -2221,11 +2221,17 @@ 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);
return; return;
} }
#endif
break; break;
default: default:
break; break;