mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
wayland:fix crash from not found window
This commit is contained in:
parent
c88329d278
commit
7dd6696dfa
@ -470,10 +470,16 @@ AppData WaylandInterface::appDataFor(WindowId wid) const
|
||||
{
|
||||
auto window = windowFor(wid);
|
||||
|
||||
const AppData &data = appDataFromUrl(windowUrlFromMetadata(window->appId(),
|
||||
window->pid(), rulesConfig));
|
||||
if (window) {
|
||||
const AppData &data = appDataFromUrl(windowUrlFromMetadata(window->appId(),
|
||||
window->pid(), rulesConfig));
|
||||
|
||||
return data;
|
||||
return data;
|
||||
}
|
||||
|
||||
AppData empty;
|
||||
|
||||
return empty;
|
||||
}
|
||||
|
||||
KWayland::Client::PlasmaWindow *WaylandInterface::windowFor(WindowId wid) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user