Bug 385000 - On dual screen, application window goes in between
Summary: On dual screen, application window goes in between
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 384854 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-23 16:30 UTC by Hamidreza Jafari
Modified: 2018-07-18 01:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hamidreza Jafari 2017-09-23 16:30:50 UTC
Some applications seem to forget their position and open partly on each screen of a dual monitor setup. It requires bit of user involvement by sending the window to fill up one screen completely and luckily it chooses the primary screen defined in system settings.
Comment 1 Martin Flöser 2017-09-23 18:51:27 UTC
Please provide xprop and xwininfo of an affected window.
Comment 2 Hamidreza Jafari 2017-09-23 19:53:50 UTC
$ xprop        
_NET_WM_ICON_GEOMETRY(CARDINAL) = 193, 1051, 36, 28
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 4, 4, 29, 4
_NET_FRAME_EXTENTS(CARDINAL) = 4, 4, 29, 4
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "34e70955-4cbf-45db-af87-5b65430e05fb"
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) =
_NET_WM_USER_TIME(CARDINAL) = 52428
_KDE_OXYGEN_BACKGROUND_GRADIENT(CARDINAL) = 1
WM_WINDOW_ROLE(STRING) = "Digikam"
_NET_WM_ICON_NAME(UTF8_STRING) =
_KDE_NET_WM_APPMENU_OBJECT_PATH(STRING) = "/MenuBar/1"
_KDE_NET_WM_APPMENU_SERVICE_NAME(STRING) = ":1.93"
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.digikam"
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = "digiKam"
_NET_WM_NAME(UTF8_STRING) = "digiKam"
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 53300
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x6800007
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 2250
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 109051910
WM_CLASS(STRING) = "digikam", "digikam"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified size: 1920 by 1021
                program specified minimum size: 1112 by 519
                window gravity: Static

$ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x6800005 "digiKam"

  Absolute upper-left X:  1362
  Absolute upper-left Y:  29
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 1021
  Depth: 24
  Visual: 0xab
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x6800004 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1362+29  -4+29  -4-30  +1362-30
  -geometry 1920x1021-4+29
Comment 3 Martin Flöser 2017-09-24 05:50:57 UTC
Please provide in addition the output of qdbus off.kde.KWin /KWin supportInformation
Comment 4 Hamidreza Jafari 2017-09-24 17:45:56 UTC
qdbus org.kde.KWin /KWin
method Q_NOREPLY void org.kde.KWin.cascadeDesktop()
method int org.kde.KWin.currentDesktop()
method Q_NOREPLY void org.kde.KWin.killWindow()
method void org.kde.KWin.nextDesktop()
method void org.kde.KWin.previousDesktop()
method Q_NOREPLY void org.kde.KWin.reconfigure()
signal void org.kde.KWin.reloadConfig()
method bool org.kde.KWin.setCurrentDesktop(int desktop)
method void org.kde.KWin.showDebugConsole()
method bool org.kde.KWin.startActivity(QString)
method bool org.kde.KWin.stopActivity(QString)
method QString org.kde.KWin.supportInformation()
method Q_NOREPLY void org.kde.KWin.unclutterDesktop()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
signal void org.freedesktop.DBus.Properties.PropertiesChanged(QString interface_name, QVariantMap changed_properties, QStringList invalidated_properties)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()
Comment 5 Martin Flöser 2017-09-24 18:34:31 UTC
it's:
qdbus org.kde.KWin /KWin supportInformation

I'm sorry the Android auto-completion turned org into off.
Comment 6 Myriam Schweingruber 2017-10-03 14:17:30 UTC
*** Bug 384854 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2017-10-12 15:54:42 UTC
If you can provide the information requested in comment #5, please add it.
Comment 8 Hamidreza Jafari 2017-10-12 17:30:05 UTC
Here:
https://paste.kde.org/pqlkegbvm
Comment 9 Christoph Feck 2017-10-13 20:45:47 UTC
Thanks for the update. Relieved to see that I am not the only one stuck at OpenGL 2.1 :)
Comment 10 Hamidreza Jafari 2017-10-16 23:52:12 UTC
Is that a problem with OpenGL?
Comment 11 Martin Flöser 2017-10-17 04:08:48 UTC
(In reply to Hamidreza Jafari from comment #10)
> Is that a problem with OpenGL?

Very unlikely.
Comment 12 Martin Flöser 2017-10-22 17:03:08 UTC
Could you please provide the xprop of all panels you have? It might influence the decision where windows are put. I need to get a full understanding. Overall I fear we truly have a bug in KWin here.
Comment 13 Hamidreza Jafari 2017-10-22 20:25:23 UTC
https://paste.kde.org/ptzx5irak/dwwben

Info of two panels separated with '---'
Comment 14 Hamidreza Jafari 2017-10-22 20:46:07 UTC
Unfortunately the pastebin user interface gave some glitches. Previous link is dead. This one is correct:

https://paste.kde.org/pnbyvlqee
Comment 15 Martin Flöser 2017-10-23 06:50:09 UTC
Please just copy the output here. Pastes might expire and we need it for understanding the bug also in years.
Comment 16 Hamidreza Jafari 2017-10-23 10:42:27 UTC
Checked for it to stay permanent. It is also recommended by some commands in their output to use pastebin services.
Comment 17 Martin Flöser 2017-10-23 13:49:02 UTC
Please nevertheless add it here. It allows us to search for it.
Comment 18 Hamidreza Jafari 2017-10-23 15:45:37 UTC
Output of $ xprop for two panels:

### FIRST PANEL INFO ----------------------------------------------------------
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 30
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 1919
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_WM_STATE(ATOM) =
_NET_WM_USER_TIME(CARDINAL) = 123137526
_KDE_SLIDE(_KDE_SLIDE) = 0xffffffff, 0x3
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 22034
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION(_KDE_NET_WM_BACKGROUND_CONTRAST_REGION) = 0x3f7953e3, 0xbddf5cd8, 0xbddf5cd8, 0x0, 0xbebbda00, 0x3f37527d, 0xbebbda00, 0x0, 0xbd17b5ca, 0xbd17b5ca, 0x3f85e210, 0x0, 0x3f2a3d71, 0x3f2a3d70, 0x3f2a3d70, 0x3f800000
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) =
_KDE_NET_WM_SHADOW(CARDINAL) = 37142494, 37142495, 37142496, 37142497, 37142498, 37142499, 37142500, 37142501, 22, 22, 22, 22
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.plasmashell"
_NET_WM_ICON(CARDINAL) =    Icon (16 x 16):

### REMOVED FOR BREVITY

XdndAware(ATOM) = BITMAP
WM_NAME(STRING) =
_NET_WM_NAME(UTF8_STRING) = "Plasma"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x4, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2200011
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: False
        Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 1336
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 35651629
WM_CLASS(STRING) = "plasmashell", "plasmashell"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        user specified location: 0, 1050
        user specified size: 1920 by 30
        program specified minimum size: 1920 by 30
        program specified maximum size: 1920 by 30
        window gravity: Static
 
### SECOND PANEL INFO----------------------------------------------------------
 
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_WM_STATE(ATOM) =
_NET_WM_USER_TIME(CARDINAL) = 120418375
_KDE_SLIDE(_KDE_SLIDE) = 0xffffffff, 0x1
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 0
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION(_KDE_NET_WM_BACKGROUND_CONTRAST_REGION) = 0x3f7953e3, 0xbddf5cd8, 0xbddf5cd8, 0x0, 0xbebbda00, 0x3f37527d, 0xbebbda00, 0x0, 0xbd17b5ca, 0xbd17b5ca, 0x3f85e210, 0x0, 0x3f2a3d71, 0x3f2a3d70, 0x3f2a3d70, 0x3f800000
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) =
_KDE_NET_WM_SHADOW(CARDINAL) = 37142494, 37142495, 37142496, 37142497, 37142498, 37142499, 37142500, 37142501, 22, 22, 22, 22
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.plasmashell"
_NET_WM_ICON(CARDINAL) =    Icon (16 x 16):

### REMOVED FOR BREVITY

XdndAware(ATOM) = BITMAP
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 25263
WM_NAME(STRING) =
_NET_WM_NAME(UTF8_STRING) = "Plasma"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x4, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2200011
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: False
        Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 1336
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 35651664
WM_CLASS(STRING) = "plasmashell", "plasmashell"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        user specified location: 1920, 0
        user specified size: 1366 by 30
        program specified minimum size: 1366 by 30
        program specified maximum size: 1366 by 30
        window gravity: Static
Comment 19 Hamidreza Jafari 2018-07-18 01:03:59 UTC
Upgraded Kubuntu and the problem is fixed.