Changeset View
Changeset View
Standalone View
Standalone View
processui/ProcessModel.cpp
Show First 20 Lines • Show All 571 Lines • ▼ Show 20 Line(s) | 571 | if(!(properties & NET::WMPid && pid)) | |||
---|---|---|---|---|---|
572 | return; //No PID for the window - this happens if the process did not set _NET_WM_PID | 572 | return; //No PID for the window - this happens if the process did not set _NET_WM_PID | ||
573 | 573 | | |||
574 | //If we are to get the PID only, we are only interested in the XRes info for this, | 574 | //If we are to get the PID only, we are only interested in the XRes info for this, | ||
575 | //so don't bother if we already have this info | 575 | //so don't bother if we already have this info | ||
576 | if(properties == NET::WMPid && mPidToWindowInfo.contains(pid)) | 576 | if(properties == NET::WMPid && mPidToWindowInfo.contains(pid)) | ||
577 | return; | 577 | return; | ||
578 | 578 | | |||
579 | w = new WindowInfo(wid, pid); | 579 | w = new WindowInfo(wid, pid); | ||
580 | mPidToWindowInfo.insertMulti(pid, w); | 580 | mPidToWindowInfo.insert(pid, w); | ||
581 | mWIdToWindowInfo.insert(wid, w); | 581 | mWIdToWindowInfo.insert(wid, w); | ||
582 | } | 582 | } | ||
583 | 583 | | |||
584 | if(w && (properties & NET::WMIcon)) { | 584 | if(w && (properties & NET::WMIcon)) { | ||
585 | w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE * dpr, HEADING_X_ICON_SIZE * dpr, true); | 585 | w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE * dpr, HEADING_X_ICON_SIZE * dpr, true); | ||
586 | w->icon.setDevicePixelRatio(dpr); | 586 | w->icon.setDevicePixelRatio(dpr); | ||
587 | } | 587 | } | ||
588 | if(properties & NET::WMVisibleName && info.visibleName()) | 588 | if(properties & NET::WMVisibleName && info.visibleName()) | ||
▲ Show 20 Lines • Show All 1781 Lines • Show Last 20 Lines |