[digesting_libdecor] kill popup helper features

main
Allen Webster 2026-02-27 19:14:52 -08:00
parent e27aa9edbe
commit 4c70db56b4
1 changed files with 0 additions and 59 deletions

View File

@ -225,7 +225,6 @@ seat_capabilities(void *data, struct wl_seat *wl_seat, uint32_t capabilities){
static void
seat_name(void *data, struct wl_seat *wl_seat, const char *name){
/* avoid warning messages when opening/closing popup window */
struct seat *seat = (struct seat*)data;
seat->name = strdup(name);
}
@ -927,11 +926,6 @@ libdecor_frame_set_visibility(bool visible){
}
}
void
libdecor_frame_popup_grab(const char *seat_name){
libdecor_plugin_gtk_frame_popup_grab(seat_name);
}
void
libdecor_frame_translate_coordinate(int content_x, int content_y, int *frame_x, int *frame_y){
*frame_x = content_x;
@ -2450,59 +2444,6 @@ synthesize_pointer_leave(struct seat *seat){
}
}
static void
libdecor_plugin_gtk_frame_popup_grab(const char *seat_name){
struct seat *seat;
wl_list_for_each(seat, &ctx.seat_list, link) {
if (STREQL(seat->name, seat_name)) {
if (seat->grabbed) {
fprintf(stderr, "libdecor-WARNING: Application tried to grab seat twice\n");
}
synthesize_pointer_leave(seat);
seat->grabbed = true;
return;
}
}
fprintf(stderr, "libdecor-WARNING: Application tried to grab unknown seat\n");
}
static void
libdecor_plugin_gtk_frame_popup_ungrab(const char *seat_name){
struct seat *seat;
bool got_seat = 0;
wl_list_for_each(seat, &ctx.seat_list, link) {
if (STREQL(seat->name, seat_name)) {
got_seat = 1;
break;
}
}
if (got_seat){
if (!seat->grabbed){
fprintf(stderr, "libdecor-WARNING: Application tried to ungrab seat twice\n");
}
seat->grabbed = false;
synthesize_pointer_enter(seat);
if (seat->pointer_focus){
struct border_component *old_active = ctx.active;
update_component_focus(seat->pointer_focus, seat);
if (old_active != ctx.active) {
draw_decoration();
wl_surface_commit(ctx.wl_surface);
}
if (update_local_cursor(seat)){
send_cursor(seat);
}
}
}
fprintf(stderr, "libdecor-WARNING: Application tried to ungrab unknown seat\n");
}
static void
libdecor_plugin_gtk_frame_get_border_size(enum libdecor_window_state window_state,
int *left, int *right, int *top, int *bottom){