Skip to content

Commit

Permalink
Merge pull request #29 from wmww/fix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored Sep 3, 2023
2 parents fd318f2 + eb3fb79 commit 14b5bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layer-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ gtk_window_get_layer_surface (GtkWindow *gtk_window)
static void
layer_surface_remap (LayerSurface *self)
{
gtk_widget_set_visible (GTK_WIDGET (self->gtk_window), FALSE);
gtk_widget_set_visible (GTK_WIDGET (self->gtk_window), TRUE);
gtk_widget_unrealize (GTK_WIDGET (self->gtk_window));
gtk_widget_map (GTK_WIDGET (self->gtk_window));
}

static void
Expand Down
4 changes: 3 additions & 1 deletion test/mock-server/overrides.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ static uint32_t click_serial = 0;
// Needs to be called before any role objects are assigned
static void surface_data_set_role(SurfaceData* data, SurfaceRole role)
{
ASSERT_EQ(data->role, SURFACE_ROLE_NONE, "%u");
if (data->role != SURFACE_ROLE_NONE) {
ASSERT_EQ(data->role, role, "%u");
}
char is_xdg_role = (role == SURFACE_ROLE_XDG_TOPLEVEL || role == SURFACE_ROLE_XDG_POPUP);
ASSERT_EQ(data->xdg_surface != NULL, is_xdg_role, "%d");
ASSERT(!data->xdg_toplevel);
Expand Down

0 comments on commit 14b5bf9

Please sign in to comment.