Send synthetic configure notify event in X11Window::maximize() only if geometry updates are unblocked

Amends ce2ddeb224.

When it's called in the manage() function, the geometry updates can be
still blocked, in which case avoid sending a configure event with an
incomplete geometry yet. It probably doesn't matter in practice though.
wilder/Plasma/6.2
Vlad Zahorodnii 1 year ago
parent ce2ddeb224
commit 8abb9d91a6
  1. 8
      src/x11window.cpp

@ -4683,9 +4683,11 @@ void X11Window::maximize(MaximizeMode mode)
updateAllowedActions();
updateWindowRules(Rules::MaximizeVert | Rules::MaximizeHoriz | Rules::Position | Rules::Size);
static bool awtQuirkDisabled = qEnvironmentVariableIntValue("KWIN_NO_AWT_QUIRK") == 1;
if (!awtQuirkDisabled) {
sendSyntheticConfigureNotify();
if (!areGeometryUpdatesBlocked()) {
static bool awtQuirkDisabled = qEnvironmentVariableIntValue("KWIN_NO_AWT_QUIRK") == 1;
if (!awtQuirkDisabled) {
sendSyntheticConfigureNotify();
}
}
if (max_mode != old_mode) {

Loading…
Cancel
Save