Commit 71c1cde4 authored by David Edmundson's avatar David Edmundson
Browse files

Drop call to QApplication::desktop in x11locker

We previously needed to create the root window so that we would be
notified when the root window changed size.

Since then API has moved to QScreen to get window sizes which has other
ways of monitoring changes.

This is for Qt6 porting.

Testing done:
- removed this whole block of code and confirmed it still does
 - removed just this one line and confirmed input is still grabbed
parent d3ff9f3c
Pipeline #191529 passed with stage
in 4 minutes and 51 seconds
......@@ -65,7 +65,6 @@ void X11Locker::initialize()
XWindowAttributes rootAttr;
XGetWindowAttributes(QX11Info::display(), QX11Info::appRootWindow(), &rootAttr);
QApplication::desktop(); // make Qt set its event mask on the root window first
XSelectInput(QX11Info::display(), QX11Info::appRootWindow(), SubstructureNotifyMask | rootAttr.your_event_mask);
// Get root window size
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