Bug 265989 - Add a button to get all windows to the current screen (where the mouse is)
Summary: Add a button to get all windows to the current screen (where the mouse is)
Status: RESOLVED DUPLICATE of bug 185103
Alias: None
Product: kwin
Classification: Plasma
Component: xinerama (show other bugs)
Version: 4.3.2
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 15:58 UTC by Ricardo Ferreira
Modified: 2011-02-28 21:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Ferreira 2011-02-10 15:58:02 UTC
Version:           4.3.2 (using KDE 4.6.0) 
OS:                Linux

This option would be useful when an output is disconnected but windows were still being displayed in it.

NOTE: I was unsure if i should report this here or in kephal.

Reproducible: Always
Comment 1 Ricardo Ferreira 2011-02-10 16:21:40 UTC
Options could be added to the window menu like:
- Move to screen
- Move to current screen

... similar to the current existing options for desktops. That way, the options would be  there for the taskbar and windowlist.
Comment 2 Martin Flöser 2011-02-10 17:17:45 UTC
What's the use of having an entry in the window list when the window is not on the current screen?

This wish sounds like a workaround for a bug. I think the bug should be fixed and we should not add workarounds.
Comment 3 Ricardo Ferreira 2011-02-10 18:08:13 UTC
Because if i have a Window List plasmoid in the panel of the main screen (on a laptop) i can still get the window menus of all opened windows.

What i do now is either i remember to move all windows to the main screen before i unplug the external monitor or i choose the Move option in all windows in the invisible screen (using the window list plasmoid) and try to steer them to the main screen with the cursor keys.
Comment 4 Thomas Lübking 2011-02-10 18:16:14 UTC
If you detach a screen, all windows should be moved into the visible area automatically. Everything else is a bug and cannot be "fixed" by an explicit user interface to trigger this.

KWin does not allow (managed) "offscreen" windows (tried to map one. tried HARD! ;-) - so this should simply not happen.
Comment 5 Ricardo Ferreira 2011-02-10 19:44:49 UTC
Well, then the bug is somewhere else. I regularly detach the external screen but KWin still thinks its there even though xrandr says it's not.
Comment 6 Thomas Lübking 2011-02-10 21:17:36 UTC
Don't get me wrong - there might be a bug in KWin and probably is in KDE - just that it's a bug and not a "we need some extra button to add this feature condition" ;-)

I've however no insight about multiscreen support in kwin, but it appears like you ahve to use xinerama (not xrandr - if xinerama is not opted, numScreens is always 1?)

If this is an xrandr thing, if( e->type == Extensions::randrNotifyEvent() ... in events.cpp seems to lack support (unless we've connection to some kephal signal)
Comment 7 Ricardo Ferreira 2011-02-11 02:57:46 UTC
Yep, the bug is probably in Kephal and/or Plasma.
Comment 8 Thomas Lübking 2011-02-28 21:56:59 UTC
i'll just mark this a dupe

*** This bug has been marked as a duplicate of bug 185103 ***