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
1c6b56ad
Commit
1c6b56ad
authored
11 years ago
by
Fabian Homborg
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
18a3d67e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
contents/code/tile.js
+2
-6
2 additions, 6 deletions
contents/code/tile.js
contents/code/tilelist.js
+6
-0
6 additions, 0 deletions
contents/code/tilelist.js
contents/code/tiling.js
+0
-2
0 additions, 2 deletions
contents/code/tiling.js
with
8 additions
and
8 deletions
contents/code/tile.js
+
2
−
6
View file @
1c6b56ad
...
...
@@ -52,11 +52,6 @@ function Tile(firstClient, tileIndex) {
* resizingStarted and resizingEnded.
*/
this
.
resizingStep
=
new
Signal
();
/**
* Signal which is triggered when the geometry of the tile changes because
* of something different to a user move or resize action.
*/
this
.
geometryChanged
=
new
Signal
();
/**
* Signal which is triggered whenever the tile is moved to a different
* screen. Two parameters are passed to the handlers, the old and the new
...
...
@@ -228,8 +223,9 @@ Tile.prototype.onClientGeometryChanged = function(client) {
// TEST
client
.
addRepaint
(
this
.
rectangle
);
}
}
else
{
print
(
"
No rectangle
"
);
}
this
.
geometryChanged
.
emit
();
}
catch
(
err
)
{
print
(
err
,
"
in Tile.onClientGeometryChanged
"
);
}
...
...
This diff is collapsed.
Click to expand it.
contents/code/tilelist.js
+
6
−
0
View file @
1c6b56ad
...
...
@@ -261,6 +261,12 @@ TileList.prototype._onClientTabGroupChanged = function(client) {
this
.
_onClientRemoved
(
client
);
client
.
syncTabGroupFor
(
"
tiling_floating
"
,
true
);
client
.
syncTabGroupFor
(
"
tiling_tileIndex
"
,
true
);
// What we'd need to do here:
// Find the old tile, remove the client from it (and remove it if empty)
// Find the new tile, add the client to it
// HOWEVER: If the tabgroup has just been created, this is called _twice_ (once for each client)
// And the .tabGroup property is always undefined, so there is no way to find the other clients
// except for maybe handing it over to tiling and there going over all tiles, removing clients that don't have matching tileIndex
}
catch
(
err
)
{
print
(
err
,
"
in TileList._onClientTabGroupChanged
"
);
}
...
...
This diff is collapsed.
Click to expand it.
contents/code/tiling.js
+
0
−
2
View file @
1c6b56ad
...
...
@@ -61,7 +61,6 @@ function Tiling(layoutType, desktop, screen) {
* @return Rectangle which contains the area which shall be used by layouts.
*/
Tiling
.
getTilingArea
=
function
(
screen
,
desktop
)
{
print
(
"
getTilingArea
"
);
return
workspace
.
clientArea
(
KWin
.
PlacementArea
,
screen
,
desktop
);
};
...
...
@@ -260,7 +259,6 @@ Tiling.prototype._updateAllTiles = function() {
try
{
// Set the position/size of all tiles
if
(
this
.
active
)
{
// FIXME: KWin hands us the wrong area if we ask for our real desktop
// FIXME: Probable kwin bug: clientArea returns the _former_ area
var
rect
=
Tiling
.
getTilingArea
(
this
.
screen
,
this
.
desktop
);
this
.
layout
.
setLayoutArea
(
rect
);
...
...
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