Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-12 16:37:48

jackkk
Member
Registered: 2025-01-12
Posts: 4
LinuxChrome 131.0

Window resize problem

I resize the active window by the following script:

window_id=$(xdotool getactivewindow)
new_width=100
new_height=100
xdotool windowsize $window_id $new_width $new_height

The window resizes, but if I switch to another workspace and then come back, the window is automatically resized back to its previous size.

How can I disable this 'feature' ?

My system is:
Linux: Debian GNU/Linux 12 (bookworm) 12.8
Kernel: 6.1.119-1
xfce4: 4.18
Nvidia: 535.183.01
GTK: 3.24.38

Last edited by jackkk (2025-01-14 08:26:37)

Offline

#2 2025-01-22 23:41:10

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 55
LinuxChrome 132.0

Re: Window resize problem

not sure what option doing this, but i test your script in virtual with basically default/clean Xfce settings and switch to different workspace and back keep window resized...

anyway you can instead xdotool try use wmctrl:

new_width=100
new_height=100
wmctrl -r :ACTIVE: -e 0,-1,-1,${new_width},${new_height}

and of course, generic tip, you can try create different user, relogin to this user (=you have clean profile) if problem persisnt ;-)

Offline

#3 2025-01-23 06:48:13

jackkk
Member
Registered: 2025-01-12
Posts: 4
LinuxChrome 132.0

Re: Window resize problem

k3dAR wrote:

anyway you can instead xdotool try use wmctrl:

new_width=100
new_height=100
wmctrl -r :ACTIVE: -e 0,-1,-1,${new_width},${new_height}

Thanks for the reply. wmctrl didn't help.

Offline

#4 2025-01-23 16:34:43

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 55
LinuxChrome 132.0

Re: Window resize problem

and second part: try it in profile of newly created user?

Offline

#5 2025-01-25 08:34:02

jackkk
Member
Registered: 2025-01-12
Posts: 4
LinuxChrome 132.0

Re: Window resize problem

k3dAR wrote:

and second part: try it in profile of newly created user?

I don't understand how this is supposed to help, but I tried, and it didn't help either.

But I've learned a little more about the problem: When I use XFCE's predefined keyboard shortcuts to resize a window to, say, the top right corner and then run a script the size is changed, but the system automatically resizes the window as soon as I switch to another workspace. The change happens as soon as I switch to another workspace not in return.

For me it's starting to sound like a bug in FXCE...

Last edited by jackkk (2025-01-25 08:38:56)

Offline

#6 2025-01-25 11:28:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,710
LinuxFirefox 134.0

Re: Window resize problem

Sounds like this and this resulting bug report.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2025-01-25 11:50:10

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 55
LinuxChrome 132.0

Re: Window resize problem

jackkk wrote:
k3dAR wrote:

and second part: try it in profile of newly created user?

I don't understand how this is supposed to help, but I tried, and it didn't help either.
[...]

this is general advice, if you use clean user profile and:
- problem still ocured => problem is (at 99.9%) system side
- problem is gone => problem is in settings of your main user

Offline

#8 2025-01-25 13:29:31

jackkk
Member
Registered: 2025-01-12
Posts: 4
LinuxChrome 132.0

Re: Window resize problem

ToZ wrote:

Sounds like this and this resulting bug report.

Thanks for the info. I did a comment for the issue.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 548.9 KiB (Peak: 549.74 KiB) ]