bugdevilspie2 - Bugs: bug #47007, Allow reading of XA_WINDOW...

 
 

bug #47007: Allow reading of XA_WINDOW properties

Submitted by:  Nicola Fontana <ntd>
Submitted on:  Fri 29 Jan 2016 09:25:04 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 29 Jan 2016 09:25:04 AM UTC, original submission:

This opens up some cool possibilities, e.g. checking if a window is transient for another one:

local xid = tostring(get_window_xid())
local tf_xid = get_window_property('WM_TRANSIENT_FOR')
if tf_xid ~= '' then
debug_print('The window ' .. xid .. ' is kept above ' .. tf_xid)
end

The only problem I see is get_window_xid() returns a number while get_window_property() returns a string so, if you need to make comparations between them, you need to cast the former to a string or the latter to a number (in Lua "123" is not equal to 123).

Nicola Fontana <ntd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #36197:  0001-Allow-reading-of-XA_WINDOW-properties.patch added by ntd (2KiB - text/x-patch - "git format-patch" of the commit)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gusnan (Updated the item)
  • -unavailable- added by ntd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 06 Feb 2016 10:52:09 AM UTCgusnanOpen/ClosedOpen=>Closed
    Sat 06 Feb 2016 10:51:36 AM UTCgusnanStatusNone=>Fixed
    Fri 29 Jan 2016 09:25:04 AM UTCntdAttached File-=>Added 0001-Allow-reading-of-XA_WINDOW-properties.patch, #36197

    Back to the top


    Powered by Savane 3.1-cleanup1