Bug 379662 - Kontact does not respect KWin window placement
Summary: Kontact does not respect KWin window placement
Status: RESOLVED DUPLICATE of bug 374537
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 5.5.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 14:15 UTC by Till Schäfer
Modified: 2017-06-27 21:05 UTC (History)
1 user (show)

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 Till Schäfer 2017-05-09 14:15:30 UTC
Kontact seems to do some magic regarding his initial window placement. Typically KWin remembers the last size and position of a window and restores it, when it is opened a second time. This is not the case for kontact. Furthermore, windows rules that are applied initially for the size or position of Kontact do not have any effect (using rule mode force does have).

Thus, I guess Kontact does some special handling about the size and position of the window and does some magic about its placement on its own (and bypass KWin rules by doing so). 

This is also problematic if one is working with dual monitor setup as Kontact is always started on the left screen ---regardless of the primary screen setting or the active screen---. If the left screen then has some horizontal offset, the position of Kontact may be even outside of the visible area!
Example: I have to monitors and can only move Kontact to the visible area by using a shortcut. It is always started on screen HDMI1.  As you can see from the screen configuration below HDMI1 has an offset of 416 pixels, which is not respected by the Kontact window placement.
Screens: 
- HDMI1 connected 1280x1024+0+416 (normal left inverted right x axis y axis) 380mm x 300mm 
- DP2 connected primary 2560x1440+1280+0 (normal left inverted right x axis y axis) 600mm x 340mm


Proposal: Do not set the size and position of Kontact after initialization. This breaks the placement rules of KWin.
Comment 1 Christoph Feck 2017-06-27 21:05:26 UTC

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