bugdevilspie2 - Bugs: bug #47079, Geometry not applied when Evince...

 
 

bug #47079: Geometry not applied when Evince is launched by Firefox

Submitter:  Christophe Troestler <ChriS>
Submitted:  Sun 07 Feb 2016 12:10:02 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Feb 2016 01:27:00 AM UTC, comment #1: 

It works iff I change the script to:

<pre>
if (get_window_class() == "Evince"
    and get_window_type() == "WINDOW_TYPE_NORMAL") then
   debug_print("Evince: " .. get_window_name());
   unmaximize();
   os.execute("sleep 0.1");
   screen_w, screen_h = get_screen_geometry();
   set_window_geometry(screen_w - 861, -25, 850, screen_h);
end
</pre>

(Not sure what is the better way to sleep for devilspie2 — http://lua-users.org/wiki/SleepFunction)

Christophe Troestler <ChriS>
Sun 07 Feb 2016 12:10:02 AM UTC, original submission:  

I have got the rule:

if (get_window_class() == "Evince"
    and get_window_type() == "WINDOW_TYPE_NORMAL") then
   debug_print("Evince: " .. get_window_name());
   unmaximize();
   screen_w, screen_h = get_screen_geometry();
   set_window_geometry(screen_w - 861, -25, 850, screen_h);
end

It is applied properly when Evince is launched from a shell but not when it is created from a Firefox download (the position is correct but not the height of the window).  However, if I then restart devilspie2, all Evince windows — regardless of how they were launched — are resized to the desired dimensions.

Christophe Troestler <ChriS>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ChriS (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code