Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/dialog.cpp
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Line(s) | |||||
556 | 556 | | |||
557 | void DialogPrivate::updateInputShape() | 557 | void DialogPrivate::updateInputShape() | ||
558 | { | 558 | { | ||
559 | if (!q->isVisible()) { | 559 | if (!q->isVisible()) { | ||
560 | return; | 560 | return; | ||
561 | } | 561 | } | ||
562 | 562 | | |||
563 | #if HAVE_XCB_SHAPE | 563 | #if HAVE_XCB_SHAPE | ||
564 | if (backgroundHints == Dialog::NoBackground) { | | |||
565 | return; | | |||
566 | } | | |||
567 | | ||||
568 | if (KWindowSystem::isPlatformX11()) { | 564 | if (KWindowSystem::isPlatformX11()) { | ||
569 | xcb_connection_t *c = QX11Info::connection(); | 565 | xcb_connection_t *c = QX11Info::connection(); | ||
570 | static bool s_shapeExtensionChecked = false; | 566 | static bool s_shapeExtensionChecked = false; | ||
571 | static bool s_shapeAvailable = false; | 567 | static bool s_shapeAvailable = false; | ||
572 | if (!s_shapeExtensionChecked) { | 568 | if (!s_shapeExtensionChecked) { | ||
573 | xcb_prefetch_extension_data(c, &xcb_shape_id); | 569 | xcb_prefetch_extension_data(c, &xcb_shape_id); | ||
574 | const xcb_query_extension_reply_t *extension = xcb_get_extension_data(c, &xcb_shape_id); | 570 | const xcb_query_extension_reply_t *extension = xcb_get_extension_data(c, &xcb_shape_id); | ||
575 | if (extension->present) { | 571 | if (extension->present) { | ||
▲ Show 20 Lines • Show All 826 Lines • Show Last 20 Lines |