Skip to content

Commit 2aeaf21

Browse files
authored
window-manager: Ignore fullscreen requests for current state (#2509)
This fixes dragging gtk4 apps with grid and/or wobbly disabled. The gtk4 toolkit sends a request for unfullscreen even though it is windowed, and this caused wayfire to set the geometry when dragging by titlebar, which made the window jump to an offset when grabbing the titlebar to move it. Fixes #2507.
1 parent 5653242 commit 2aeaf21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/window-manager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ void window_manager_t::tile_request(wayfire_toplevel_view view,
244244
void window_manager_t::fullscreen_request(wayfire_toplevel_view view,
245245
wf::output_t *output, bool state, std::optional<wf::point_t> ws)
246246
{
247+
if (view->toplevel()->pending().fullscreen == state)
248+
{
249+
return;
250+
}
251+
247252
wf::output_t *wo = output ?: (view->get_output() ?: wf::get_core().seat->get_active_output());
248253
const wf::point_t workspace = ws.value_or(wo->wset()->get_current_workspace());
249254
wf::dassert(wo != nullptr, "Fullscreening should not happen with null output!");

0 commit comments

Comments
 (0)