Browse Source

Fix compilation errors under Ubuntu 20.04

The problems will hopefully be fixed upstream later
pull/933/head
ManoloFLTK 1 year ago
parent
commit
14d7218acd
  1. 21
      libdecor/src/plugins/gtk/libdecor-gtk.c

21
libdecor/src/plugins/gtk/libdecor-gtk.c

@ -2246,15 +2246,16 @@ handle_titlebar_gesture(struct libdecor_frame_gtk *frame_gtk,
break; break;
case TITLEBAR_GESTURE_MIDDLE_CLICK: case TITLEBAR_GESTURE_MIDDLE_CLICK:
break; break;
case TITLEBAR_GESTURE_RIGHT_CLICK: case TITLEBAR_GESTURE_RIGHT_CLICK: { /* FLTK */
const int title_height = gtk_widget_get_allocated_height(frame_gtk->header); const int title_height = gtk_widget_get_allocated_height(frame_gtk->header);
libdecor_frame_show_window_menu(&frame_gtk->frame, libdecor_frame_show_window_menu(&frame_gtk->frame,
seat->wl_seat, seat->wl_seat,
serial, serial,
seat->pointer_x, seat->pointer_x,
seat->pointer_y seat->pointer_y
-title_height); -title_height);
} /* FLTK */
break; break;
} }
} }
@ -2408,7 +2409,7 @@ pointer_button(void *data,
case HEADER: case HEADER:
handle_button_on_header (frame_gtk, seat, serial, time, button, state); handle_button_on_header (frame_gtk, seat, serial, time, button, state);
break; break;
default: //default: /* FLTK */
} }
} }

Loading…
Cancel
Save