Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-08-25 19:08:36

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

(programming) full screen window except not over panel

i would like my program to open a window in X almost full screen (on top of the window stack) covering everything except the panel with nothing over or under the panel (every pixel of both being displayed).  is there a simple way to achieve this?  i am coding this in Python3.  i prefer library calls instead of invoking commands to get info but am not ruling out using commands (as long as the output is not complex to parse).

Offline

#2 2022-08-25 19:34:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,015

Re: (programming) full screen window except not over panel

Is this for all programs or just one program? If its for all programs, you can use margins (Settings Manager > Workspaces > Margins).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-08-25 22:55:39

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: (programming) full screen window except not over panel

it's for programs i will be coding, not any others.  the programs may or may not do so and it may not be the first window it opens.  i'm just getting started making some GUI capable programs.  i want make them "Xfce aware" such as leaving the panel visible when showing a graph in very large detail.  although i can code in C, i plan to do just Python3 for GUI apps.

Offline

#4 2022-08-26 01:42:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,015

Re: (programming) full screen window except not over panel

Perhaps your best bet is to get the size of the panel (assuming only one panel) and set the window geometry to the screen size minus panel size.

xfconf-query -c xfce4-panel -lv | grep panel-1 | grep "/size"

...will return the panel row size in pixels.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-08-26 13:16:14

Misko_2083
Member
Registered: 2015-10-13
Posts: 191
Website

Re: (programming) full screen window except not over panel

There could be several panels.
It's easiest to look for _NET_WORKAREA property of the root window.

xprop -root _NET_WORKAREA

That way it would not depend on xfce panels and would work in other DE's.
Although not on Wayland.


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

Board footer

Powered by FluxBB