FLTK logo

[master] 09340be - libdecor GTK: remove the last code change required by FLTK.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 09340be - libdecor GTK: remove the last code change required by FLTK. "ManoloFLTK" Jun 08, 2022  
 
commit 09340be6837e046d460409f8ba8835c6ca61075e
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Jun 8 14:43:25 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Jun 8 14:43:25 2022 +0200

    libdecor GTK: remove the last code change required by FLTK.

 libdecor/src/plugins/gtk/libdecor-gtk.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git libdecor/src/plugins/gtk/libdecor-gtk.c libdecor/src/plugins/gtk/libdecor-gtk.c
index 9a0084a..33d442c 100644
--- libdecor/src/plugins/gtk/libdecor-gtk.c
+++ libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -42,10 +42,6 @@
 
 #include <cairo/cairo.h>
 
-#ifndef APPLY_FLTK_CHANGES
-#define APPLY_FLTK_CHANGES 1
-#endif
-
 /* Note for FLTK: This header file changes location, while its content stays unchanged,
  between the master and gtk_cairo_single branches */
 #include "../cairo/libdecor-cairo-blur.h"
@@ -2243,11 +2239,7 @@ pointer_button(void *data,
 	} else if (button == BTN_RIGHT &&
 		 state == WL_POINTER_BUTTON_STATE_PRESSED &&
 		 seat->pointer_focus == frame_gtk->headerbar.wl_surface) {
-#if APPLY_FLTK_CHANGES
-          const int title_height = GTK_IS_WIDGET(frame_gtk->header) ? gtk_widget_get_allocated_height(frame_gtk->header) : 0;
-#else
 		const int title_height = gtk_widget_get_allocated_height(frame_gtk->header);
-#endif
 				libdecor_frame_show_window_menu(&frame_gtk->frame,
 								seat->wl_seat,
 								serial,
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.