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

 
 

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

Submitted by:  Christophe Troestler <ChriS>
Submitted on:  Sun 07 Feb 2016 12:10:02 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ChriS (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1