Bug 269738 - Please allow for a delay with "Detect Window Properties"
Summary: Please allow for a delay with "Detect Window Properties"
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 23:06 UTC by Daniel Hahler
Modified: 2018-02-04 09:36 UTC (History)
2 users (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 Daniel Hahler 2011-03-29 23:06:22 UTC
Version:           unspecified (using KDE 4.6.1) 
OS:                Linux

I am trying to add window-specific settings for the Klipper window, so that it gets excluded from Tiling, but I am unable to detect the window properties using the crosshair; the Klipper window will disappear when it loses focus.

Therefore it would be great to have an option to trigger the crosshair after X seconds (e.g. 5 by default). After clicking "Detect Window Properties" you would have then 5 seconds to activate the Klipper window.

Reproducible: Always
Comment 1 John Florian 2012-02-02 14:22:49 UTC
I see we have this feature now (using 4.7.4 here, but it's been there for a few versions).

However, this feature doesn't do what I'd hoped it would.  I would like to have a delay that kwin waits on new windows before applying the rules.  Let me give a specific example to make this more clear.  I want certain gvim windows to be placed/sized in a specific way, but not all gvim windows.  I wish to make the distinction based on the window title, which typically shows information based on the file being edited.  However, gvim has this annoying habit of first setting the title to "gvim" and then replacing it with "gvim -- filename" or something along those lines.  The point is that gvim changes the window title shortly after start up.  I want the window rule to apply to the final title, not the initial title.

Can we add a second delay to accomplish that too?
Comment 2 Thomas Lübking 2012-02-02 14:59:10 UTC
No.
a) "delay" would introduce just heuristic behavior in this regard
b) esp. for placing this is a problem, because the window is placed before

-> The only solution would be to track window titles, ie. update rules everytime a title updates - what
a) can happen quite often
b) would likely break other rule behavior (major functional change)
so it must (while actually reasonable) be touched with great care and should not be done unless the upateRules function become a little smarter.

What you want to do can however possibly be achieved by scripting or also plain good old
   gvim -geometry 640x480+64+48
what will open a new gvim window at x:64 y:48 with 640x480px size

Btw, thanks for bumping /this/ bug (forgot to tag it fixed) but in general please do not hijack other bugs/wishes only because they've similar titles, makes bug triaging hell =)
Comment 3 Martin Flöser 2012-04-13 19:22:44 UTC
Bulk change: move all KWin kcm bugs to product kwin