Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 489 Lines • ▼ Show 20 Line(s) | 488 | { | |||
---|---|---|---|---|---|
490 | connect(c, &AbstractClient::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged); | 490 | connect(c, &AbstractClient::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged); | ||
491 | } | 491 | } | ||
492 | 492 | | |||
493 | Client* Workspace::createClient(xcb_window_t w, bool is_mapped) | 493 | Client* Workspace::createClient(xcb_window_t w, bool is_mapped) | ||
494 | { | 494 | { | ||
495 | StackingUpdatesBlocker blocker(this); | 495 | StackingUpdatesBlocker blocker(this); | ||
496 | Client* c = new Client(); | 496 | Client* c = new Client(); | ||
497 | setupClientConnections(c); | 497 | setupClientConnections(c); | ||
498 | connect(c, &Client::activeChanged, m_compositor, static_cast<void (Compositor::*)()>(&Compositor::checkUnredirect)); | | |||
499 | connect(c, SIGNAL(fullScreenChanged()), m_compositor, SLOT(checkUnredirect())); | | |||
500 | connect(c, SIGNAL(geometryChanged()), m_compositor, SLOT(checkUnredirect())); | | |||
501 | connect(c, SIGNAL(geometryShapeChanged(KWin::Toplevel*,QRect)), m_compositor, SLOT(checkUnredirect())); | | |||
502 | connect(c, SIGNAL(blockingCompositingChanged(KWin::Client*)), m_compositor, SLOT(updateCompositeBlocking(KWin::Client*))); | 498 | connect(c, SIGNAL(blockingCompositingChanged(KWin::Client*)), m_compositor, SLOT(updateCompositeBlocking(KWin::Client*))); | ||
503 | connect(c, SIGNAL(clientFullScreenSet(KWin::Client*,bool,bool)), ScreenEdges::self(), SIGNAL(checkBlocking())); | 499 | connect(c, SIGNAL(clientFullScreenSet(KWin::Client*,bool,bool)), ScreenEdges::self(), SIGNAL(checkBlocking())); | ||
504 | if (!c->manage(w, is_mapped)) { | 500 | if (!c->manage(w, is_mapped)) { | ||
505 | Client::deleteClient(c); | 501 | Client::deleteClient(c); | ||
506 | return NULL; | 502 | return NULL; | ||
507 | } | 503 | } | ||
508 | addClient(c); | 504 | addClient(c); | ||
509 | return c; | 505 | return c; | ||
▲ Show 20 Lines • Show All 1221 Lines • Show Last 20 Lines |