We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4b25e commit 4ede612Copy full SHA for 4ede612
lib/Utils.vala
@@ -266,10 +266,15 @@ namespace Gala {
266
267
/**
268
* Get the number of toplevel windows on a workspace excluding those that are
269
- * on all workspaces
+ * on all workspaces.
270
+ *
271
+ * We need `exclude` here because on Meta.Workspace.window_removed
272
+ * the windows gets removed from workspace's internal window list but not display's window list
273
+ * which Meta.Workspace uses for Meta.Workspace.list_windows ().
274
*
275
* @param workspace The workspace on which to count the windows
276
* @param exclude a window to not count
277
278
*/
279
public static uint get_n_windows (Meta.Workspace workspace, bool on_primary = false, Meta.Window? exclude = null) {
280
var n = 0;
0 commit comments