Fwd: Konsole | Splits: Fix repaint after unmaximizing (!13)

Mariusz Glebocki mglb at arccos-1.net
Sun Jul 7 16:57:23 BST 2019


https://invent.kde.org/kde/konsole/merge_requests/13

---------- Forwarded message ---------
From: Mariusz Glebocki <noreply at kde.org>
Date: Sun, Jul 7, 2019 at 5:51 PM
Subject: Konsole | Splits: Fix repaint after unmaximizing (!13)
To: <mglb at arccos-1.net>

Branches: splits-fix-repaint-after-unmaximizing → master

Just after showing (i.e. in showEvent), contentsRect() width (or
height) is 0, which after calculations leads to _usedColumns (or
_usedLines) being equal to 1. Valid contentsRect() is restored just
after showEvent, and is available in resizeEvent.

Test

Split left/right
Maximize one terminal
Unmaximize

Without patch: Previously hidden terminal appears with only one column painted

With patch: Normal, fully painted terminal is shown.


More information about the konsole-devel mailing list