Skip to content

Commit

Permalink
fix bauhaus popup crash on scaled wayland displays
Browse files Browse the repository at this point in the history
  • Loading branch information
dterrahe authored and TurboGit committed Dec 28, 2024
1 parent b3f1ec7 commit f2352ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bauhaus/bauhaus.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ static void _window_position(const int offset)
gtk_widget_set_app_paintable(pop->window, TRUE);
GdkScreen *screen = gtk_widget_get_screen(pop->window);
GdkVisual *visual = gdk_screen_get_rgba_visual(screen);
pop->offcut = -10000;
height = -2 * pop->offcut;
pop->offcut = -height;
height *= 2;
gtk_widget_set_visual(pop->window, visual);
}
#endif
Expand Down

0 comments on commit f2352ef

Please sign in to comment.