Skip to content

Commit

Permalink
Bauhaus.c: fix popup positionning for Wayland/Sway
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Nov 25, 2023
1 parent 549c3b7 commit 57ed58d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bauhaus/bauhaus.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,11 @@ void dt_bauhaus_init()
gtk_window_set_resizable(GTK_WINDOW(darktable.bauhaus->popup_window), FALSE);
gtk_window_set_default_size(GTK_WINDOW(darktable.bauhaus->popup_window), 260, 260);
gtk_window_set_modal(GTK_WINDOW(darktable.bauhaus->popup_window), TRUE);

// Needed for Wayland and Sway :
gtk_window_set_transient_for(GTK_WINDOW(darktable.bauhaus->popup_window),
GTK_WINDOW(dt_ui_main_window(darktable.gui->ui)));

gtk_window_set_decorated(GTK_WINDOW(darktable.bauhaus->popup_window), FALSE);
gtk_window_set_attached_to(GTK_WINDOW(darktable.bauhaus->popup_window), NULL);

Expand Down

0 comments on commit 57ed58d

Please sign in to comment.