Comments (4)
Okay, I figured out the source of the problem.
Surprise, surprise. KWin script is invoked concurrently, causing race conditions. Here's what exactly happened:
- Minimizing the master fires
client.minimizeChanged
signal, which causes full rearrangement of all tiles. - During the rearrangement of
screen 0
, the slave is resized and move. Due to the order of operations (resize->move), the slave temporarily invadesscreen 1
(Of course, this depends on monitor configuration). - KWin thinks the slave is move to
screen 1
, and firesclient.screenChanged
signal concurrently. This causes another full rearrangement being performed concurrently, and, for some reason, the first rearrangement is effectively suspended. - The second rearrangement tiles the slave to
screen 1
, and completes. - The first rearrangement continues to
screen 1
, tiles the slave again, and completes.
Preventing the race condition did fix the problem, but I think I should find a better solution than adding an arbitrary flag.
from krohnkite.
I pushed a fix 87d9683. Instead of tackling with race condition, I could suppress it once for all. This will also prevent windows being randomly thrown into another screen.
I did test this in multi-head VM, but would you check if it indeed works?
from krohnkite.
I haven't done extensive testing yet, but doing simple 2 windows setups with minimizing the master, it doesn't move windows, in both monitors.
Seems good :) Thanks for your awesome work !
from krohnkite.
Okay, thanks. Closing now.
from krohnkite.
Related Issues (20)
- Is it possible to combine the effort under Bismuth umbrella? HOT 10
- Move hotkeys works wrong
- Rotate does not come up in Kwin shortcuts HOT 1
- Sometimes windows are created without borders HOT 1
- Extra space after resizing HOT 1
- Any way to keep title bar for floating windows? HOT 1
- Blinking new windows when launching with a firefox window opened
- Make 3 columns have equal width
- tdrop windows not being tiled just as yakuake although added to "ignored windows" HOT 1
- Krohnkite doesnt ignore Xtreme Download Manager
- Add widget to the panel to enable and disable tiling as needed
- Down/Next and Up/Previous shortcuts don't work
- Tiling Layout stopped working on some windows after upgrade to Plasma 5.27 HOT 9
- The window does not update size after latte dock reapplying floating gap
- Plasma Freezes After Toggling Float HOT 1
- Krohnkite not functioning on KDE6 HOT 4
- How to configure Krohnkite to act like i3?
- Plasma 6.1 Edit Mode HOT 4
- The windows are no more in tiling mode if I turn off my monitor.
- The tiling breaks if a window is in multiple virtual desktops HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krohnkite.