Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Line(s) | 470 | { | |||
---|---|---|---|---|---|
520 | Xcb::Extensions::destroy(); | 520 | Xcb::Extensions::destroy(); | ||
521 | _self = 0; | 521 | _self = 0; | ||
522 | } | 522 | } | ||
523 | 523 | | |||
524 | void Workspace::setupClientConnections(AbstractClient *c) | 524 | void Workspace::setupClientConnections(AbstractClient *c) | ||
525 | { | 525 | { | ||
526 | connect(c, &Toplevel::needsRepaint, m_compositor, &Compositor::scheduleRepaint); | 526 | connect(c, &Toplevel::needsRepaint, m_compositor, &Compositor::scheduleRepaint); | ||
527 | connect(c, &AbstractClient::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged); | 527 | connect(c, &AbstractClient::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged); | ||
528 | connect(c, &AbstractClient::minimizedChanged, this, std::bind(&Workspace::clientMinimizedChanged, this, c)); | ||||
528 | } | 529 | } | ||
529 | 530 | | |||
530 | Client* Workspace::createClient(xcb_window_t w, bool is_mapped) | 531 | Client* Workspace::createClient(xcb_window_t w, bool is_mapped) | ||
531 | { | 532 | { | ||
532 | StackingUpdatesBlocker blocker(this); | 533 | StackingUpdatesBlocker blocker(this); | ||
533 | Client* c = new Client(); | 534 | Client* c = new Client(); | ||
534 | setupClientConnections(c); | 535 | setupClientConnections(c); | ||
535 | connect(c, SIGNAL(blockingCompositingChanged(KWin::Client*)), m_compositor, SLOT(updateCompositeBlocking(KWin::Client*))); | 536 | connect(c, SIGNAL(blockingCompositingChanged(KWin::Client*)), m_compositor, SLOT(updateCompositeBlocking(KWin::Client*))); | ||
▲ Show 20 Lines • Show All 1277 Lines • Show Last 20 Lines |