Bug 333882 - kwin should allow to configure a fixed screen number as active screen
Summary: kwin should allow to configure a fixed screen number as active screen
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: git master
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: 5
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-25 18:13 UTC by Serhiy Zahoriya
Modified: 2018-10-11 16:05 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (65.33 KB, image/jpeg)
2014-04-29 13:05 UTC, Chris Taylor
Details
Display Settings forgotten after change, no primary output set (65.34 KB, image/jpeg)
2014-04-29 13:06 UTC, Chris Taylor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serhiy Zahoriya 2014-04-25 18:13:39 UTC
I've tried using my notebook with big HDMI screen and wanted to launch all applications initially on the notebook screen and use big screen just for one app. But if I configure displays position to reflect physical positions, HDMI on the top of LVDS, all new windows appear on the big screen. Main display setting is being ignored and not stored. The only workaround is to place LVDS display left of HDMI on the same level.

Reproducible: Always
Comment 1 Chris Taylor 2014-04-29 13:05:40 UTC
Created attachment 86346 [details]
Screenshot

I also have a similar problem, my primary display choice is forgotten after I close system settings.
Comment 2 Chris Taylor 2014-04-29 13:06:47 UTC
Created attachment 86347 [details]
Display Settings forgotten after change, no primary output set
Comment 3 Christoph Feck 2014-04-29 23:49:42 UTC
Chris, please report this issue for KScreen. The original reporter seems to use the old KRandR.
Comment 4 Serhiy Zahoriya 2014-04-30 14:50:27 UTC
I'm using KScreen too.
Comment 5 Thomas Lübking 2014-05-14 16:12:01 UTC
"you're holding it wrongly" - i'll explain in detail later (not on a phone keyboard ;-)
Comment 6 Thomas Lübking 2014-05-14 18:46:04 UTC
@Chris
Your issue is fundamentally different from Serhiys. Please file a new bug against kscreen.

@Serhiy
KWin opens windows on the active screen - what that means is configurable. Run "kcmshell4 kwinoptions" and un/check "Active screen follows mouse"
If the mouse doesn't determine the active screen, it's the screen with the currently active window on it.

You can already make kwin to start/keep clients on a specific screen, "imitating" the assumed request (to set a fix active screen)

Run "kcmshell4 kwinrules", click "New" acan alter nd in the "Size & Position" tab (2nd one), check "Screen", select "Apply initially" ("Force" would prevent windows to be moved to another screen at all) and enter a screen number ("1" for the primary screen. Notice that this depends on the actual setup, ie. if you remove the primary screen, the former secondary screen implicitly becomes the new primary one)

However, clients (Mozilla ie. Firefox and Thunderbird, but also others) can request a specific position (implying a particular screen).
If you want to prevent this, also check "Ignore requested geometry" and select "Apply Initially" and "Yes"

Click "Ok" on both dialog and you're done. (You'll receive a warning about applying a rule to all windows, but that's actually what you want in this case)