Bug 365042 - kwin doesnt place winecfg's window centered
Summary: kwin doesnt place winecfg's window centered
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.6.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-03 15:22 UTC by farmboy0
Modified: 2017-05-02 10:36 UTC (History)
1 user (show)

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


Attachments
first part of the rule description (67.19 KB, image/png)
2016-07-03 15:23 UTC, farmboy0
Details
seconf part of the rules description (92.64 KB, image/png)
2016-07-03 15:23 UTC, farmboy0
Details
xwininfo (716 bytes, application/x-info)
2016-07-03 15:56 UTC, farmboy0
Details
xprops (3.63 KB, text/plain)
2016-07-03 15:56 UTC, farmboy0
Details
kwinrules (186 bytes, text/plain)
2016-07-03 16:19 UTC, farmboy0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description farmboy0 2016-07-03 15:22:38 UTC
I have a single window rule set up.
All window's initial placement is forced to centered.
This works for most windows except for winecfg a config application for the wine package.
This window is always placed in the upper left corner and nothing I tried makes a difference.

Reproducible: Always

Steps to Reproduce:
1.Set up the rule like in the screenshots
2.Start winecfg (need wine installed)
3.

Actual Results:  
The window is placed in the upper left corner.

Expected Results:  
The window should be shown centered on the screen.

I tried selecting different window types or making the rule specific to that application.
Comment 1 farmboy0 2016-07-03 15:23:27 UTC
Created attachment 99828 [details]
first part of the rule description
Comment 2 farmboy0 2016-07-03 15:23:55 UTC
Created attachment 99829 [details]
seconf part of the rules description
Comment 3 Thomas Lübking 2016-07-03 15:29:24 UTC
It'll likely demand that position (or configure itself there afterwards)
"Ignore requested geometry" (At least "apply initially", perhaps "force" is required)
Comment 4 Thomas Lübking 2016-07-03 15:31:34 UTC
PS: "kcmshell5 kwinoptions", you can configure the global placement strategy there. No need for a rule here.
Comment 5 farmboy0 2016-07-03 15:44:31 UTC
Ignore requested geometry doesnt work. Neither of them.
Global window placement is already set to centered. No effect, even not without the rule.
Comment 6 Thomas Lübking 2016-07-03 15:51:25 UTC
can you please dump "xprop" and "xwininfo" on the window and attach the output?

   xwininfo > ~/winecfg.info
   xprop > ~/winecfg.props

The cursor turns into a "+" each time, then just click the window.
Comment 7 farmboy0 2016-07-03 15:56:38 UTC
Created attachment 99830 [details]
xwininfo
Comment 8 farmboy0 2016-07-03 15:56:58 UTC
Created attachment 99831 [details]
xprops
Comment 9 Thomas Lübking 2016-07-03 16:01:34 UTC
The window certainly positions itself, but (required) setting "ignore requested geometry" to "force" and "yes"(!) should prevent that. Otherwise there's a bug. In that case please attach ~/.config/kwinrulesrc
Comment 10 farmboy0 2016-07-03 16:19:15 UTC
Created attachment 99832 [details]
kwinrules
Comment 11 Lubos Lunak 2017-05-02 10:36:30 UTC
I don't think the rule set up this way actually matches the winecfg window (window class is not set, nor anything else in the first screenshot).

And this works perfectly fine here, when the winecfg window is open, using Alt+F3/Advanced/Special window settings (or whatever it's exactly in English) and then following comment #9.