Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kwin-tiling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Bay
kwin-tiling
Commits
13713ee1
Commit
13713ee1
authored
11 years ago
by
Fabian Homborg
Browse files
Options
Downloads
Patches
Plain Diff
Connect to client.windowClosed instead of workspace.clientRemoved
This is called earlier, so we resize before FFM picks a new client.
parent
24cb528d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contents/code/tilelist.js
+7
-5
7 additions, 5 deletions
contents/code/tilelist.js
with
7 additions
and
5 deletions
contents/code/tilelist.js
+
7
−
5
View file @
13713ee1
...
...
@@ -39,8 +39,10 @@ function TileList() {
this
.
tileRemoved
=
new
Signal
();
// We connect to the global workspace callbacks which are triggered when
// clients are added/removed in order to be able to keep track of the
// new/deleted tiles
// clients are added in order to be able to keep track of the
// new tiles
// Do not connect to clientRemoved as that is called after FFM selects a new active client
// Instead, connect to client.windowClosed
var
self
=
this
;
workspace
.
clientAdded
.
connect
(
function
(
client
)
{
// Don't connect signal if the client is ignored
...
...
@@ -57,9 +59,6 @@ function TileList() {
self
.
_onClientAdded
(
client
);
});
});
workspace
.
clientRemoved
.
connect
(
function
(
client
)
{
self
.
_onClientRemoved
(
client
);
});
}
TileList
.
prototype
.
connectSignals
=
function
(
client
)
{
...
...
@@ -110,6 +109,9 @@ TileList.prototype.connectSignals = function(client) {
tile
.
onClientGeometryChanged
(
client
);
}
});
client
.
windowClosed
.
connect
(
function
(
cl
,
deleted
)
{
self
.
_onClientRemoved
(
client
);
});
client
.
clientStartUserMovedResized
.
connect
(
function
()
{
var
tile
=
getTile
(
client
);
if
(
tile
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment