mirror of
https://github.com/elementary/gala.git
synced 2024-12-04 21:45:07 +03:00
appicon: Check whether we really got a BamfApplication associated with the icon, before we use it
This commit is contained in:
parent
cf1bed7e69
commit
f1aedb9e88
@ -69,10 +69,11 @@ namespace Gala
|
||||
|
||||
icons.add_child (actor);
|
||||
|
||||
var xids = app.get_xids ();
|
||||
if (xids.length > 1) { //get all the windows that belong to this app
|
||||
// get all the windows that belong to this app, if possible
|
||||
if (app != null && app.get_xids ().length > 1) {
|
||||
var wins = window.get_workspace ().list_windows ();
|
||||
for (var i=0;i<xids.length;i++) {
|
||||
var xids = app.get_xids ();
|
||||
for (var i = 0; i < xids.length; i++) {
|
||||
foreach (var win in wins) {
|
||||
if (xids.index (i) == (uint32)win.get_xwindow ())
|
||||
win.change_workspace ((WorkspaceThumb.destination as WorkspaceThumb).workspace);
|
||||
@ -88,6 +89,8 @@ namespace Gala
|
||||
old.icons.animate (AnimationMode.LINEAR, 100, x:Math.floorf (old.wallpaper.x + old.wallpaper.width / 2 - old.icons.width / 2));
|
||||
icons.animate (AnimationMode.LINEAR, 100, x:Math.floorf (wallpaper.x + wallpaper.width / 2 - icons.width / 2));
|
||||
}
|
||||
|
||||
WorkspaceThumb.destination = null;
|
||||
}
|
||||
|
||||
void drag_begin (Actor actor, float x, float y, ModifierType modifier)
|
||||
|
Loading…
Reference in New Issue
Block a user