Skip to content

Commit

Permalink
do not perform initial empty commit for lock surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Cu3PO42 committed Mar 23, 2024
1 parent 0e530fd commit 9cc6402
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions result
1 change: 1 addition & 0 deletions result-dev
4 changes: 2 additions & 2 deletions src/lock-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ lock_surface_handle_configure (void *data,
GtkWindow *gtk_window = custom_shell_surface_get_gtk_window(&self->super);
GdkWindow *gdk_window = gtk_widget_get_window (GTK_WIDGET (gtk_window));

wl_surface_commit (gdk_wayland_window_get_wl_surface (gdk_window));
wl_display_roundtrip (gdk_wayland_display_get_wl_display (gdk_display_get_default ()));
//wl_surface_commit (gdk_wayland_window_get_wl_surface (gdk_window));
//wl_display_roundtrip (gdk_wayland_display_get_wl_display (gdk_display_get_default ()));

gdk_window_thaw_updates(gdk_window);
self->first_commit_done = true;
Expand Down

0 comments on commit 9cc6402

Please sign in to comment.