Paste P414

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Jun 21 2019, 4:51 PM.
diff --git a/shadow.cpp b/shadow.cpp
index 2cbabb01b..1699b837a 100644
--- a/shadow.cpp
+++ b/shadow.cpp
@@ -124,7 +124,7 @@ Shadow *Shadow::createShadowFromWayland(Toplevel *toplevel)
QVector< uint32_t > Shadow::readX11ShadowProperty(xcb_window_t id)
{
QVector<uint32_t> ret;
- if (id != XCB_WINDOW) {
+ if (id != XCB_WINDOW_NONE) {
Xcb::Property property(false, id, atoms->kde_net_wm_shadow, XCB_ATOM_CARDINAL, 0, 12);
uint32_t *shadow = property.value<uint32_t*>();
if (shadow) {
davidedmundson edited the content of this paste. (Show Details)Jun 21 2019, 4:51 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.