diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-11-03 08:16:03 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-11-03 08:16:49 +0100 |
| commit | a5d2b5ed451ca8414bc3a82288fbbf63fcc97070 (patch) | |
| tree | dfe6366a3cd909c79d36c7cf251dec832eba635b /libdecor/demo | |
| parent | 33f01ecb836f9bd70447fcd7ab0f7eda27d224db (diff) | |
libdecor: update from source git repo (commit e87dcfda)
This brings the GTK plugin inside the master libdecor git repo.
Diffstat (limited to 'libdecor/demo')
| -rw-r--r-- | libdecor/demo/demo.c | 14 | ||||
| -rw-r--r-- | libdecor/demo/egl.c | 1 |
2 files changed, 9 insertions, 6 deletions
diff --git a/libdecor/demo/demo.c b/libdecor/demo/demo.c index ff285cc2f..26d955c18 100644 --- a/libdecor/demo/demo.c +++ b/libdecor/demo/demo.c @@ -2,6 +2,7 @@ * Copyright © 2011 Benjamin Franzke * Copyright © 2010 Intel Corporation * Copyright © 2018 Jonas Ådahl + * Copyright © 2019 Christian Rauch * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -1117,6 +1118,13 @@ handle_configure(struct libdecor_frame *frame, enum libdecor_window_state window_state; struct libdecor_state *state; + /* Update window state first for the correct calculations */ + if (!libdecor_configuration_get_window_state(configuration, + &window_state)) + window_state = LIBDECOR_WINDOW_STATE_NONE; + + window->window_state = window_state; + if (!libdecor_configuration_get_content_size(configuration, frame, &width, &height)) { width = window->content_width; @@ -1129,12 +1137,6 @@ handle_configure(struct libdecor_frame *frame, window->configured_width = width; window->configured_height = height; - if (!libdecor_configuration_get_window_state(configuration, - &window_state)) - window_state = LIBDECOR_WINDOW_STATE_NONE; - - window->window_state = window_state; - state = libdecor_state_new(width, height); libdecor_frame_commit(frame, state, configuration); libdecor_state_free(state); diff --git a/libdecor/demo/egl.c b/libdecor/demo/egl.c index 3d7331645..8963ea457 100644 --- a/libdecor/demo/egl.c +++ b/libdecor/demo/egl.c @@ -2,6 +2,7 @@ * Copyright © 2011 Benjamin Franzke * Copyright © 2010 Intel Corporation * Copyright © 2018 Jonas Ådahl + * Copyright © 2019 Christian Rauch * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the |
