[master] a2bf4d7 - Update with changes from source (commit bcb1d791).

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] a2bf4d7 - Update with changes from source (commit bcb1d791). "ManoloFLTK" 06:02 Sep 21 top right image
 
commit a2bf4d7ef291c4a2ffcc4931d07fc00c307efc8d
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Sep 21 14:52:53 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Sep 21 14:52:53 2022 +0200

    Update with changes from source (commit bcb1d791).

 libdecor/src/plugins/gtk/libdecor-gtk.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git libdecor/src/plugins/gtk/libdecor-gtk.c libdecor/src/plugins/gtk/libdecor-gtk.c
index 12d40a2..a2019d5 100644
--- libdecor/src/plugins/gtk/libdecor-gtk.c
+++ libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -2211,6 +2211,7 @@ pointer_button(void *data,
 		else if (state == WL_POINTER_BUTTON_STATE_RELEASED) {
 			switch (frame_gtk->active->type) {
 			case HEADER:
+				libdecor_frame_ref(&frame_gtk->frame);
 				switch (frame_gtk->hdr_focus.type) {
 				case HEADER_MIN:
 					if (minimizable(frame_gtk))
@@ -2221,18 +2222,11 @@ 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);
-                                                seat->pointer_focus = NULL;
-                                                return;
+                                               libdecor_frame_close(
+                                                       &frame_gtk->frame);
+                                               seat->pointer_focus = NULL;
                                         }
-#endif
 					break;
 				default:
 					break;
@@ -2243,6 +2237,7 @@ pointer_button(void *data,
 					draw_title_bar(frame_gtk);
 					libdecor_frame_toplevel_commit(&frame_gtk->frame);
 				}
+				libdecor_frame_unref(&frame_gtk->frame);
 				break;
 			default:
 				break;
@@ -2610,4 +2605,8 @@ libdecor_plugin_description = {
 	.description = "GTK3 plugin",
 	.priorities = priorities,
 	.constructor = libdecor_plugin_new,
+	.conflicting_symbols = {
+		"png_free",
+		NULL,
+	},
 };
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

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