Commit a8477c1c authored by Xaver Hugl's avatar Xaver Hugl Committed by Vlad Zahorodnii
Browse files

toplevel: set valid output in the constructor

This makes it less easy to cause crashes and fixes some segfaults.

BUG: 452433
BUG: 448064

(cherry picked from commit e48a5c05)

Tested-by: Merge Service <!2448>
Part-of: <!2448>
parent 4c319527
Pipeline #179875 passed with stage
in 12 minutes and 22 seconds
......@@ -34,7 +34,8 @@ namespace KWin
{
Toplevel::Toplevel()
: m_visual(XCB_NONE)
: m_output(workspace()->activeOutput())
, m_visual(XCB_NONE)
, bit_depth(24)
, info(nullptr)
, ready_for_painting(false)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment