You are not logged in.
Pages: 1
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
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
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
and second part: try it in profile of newly created user?
Offline
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
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
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
Sounds like this and this resulting bug report.
Thanks for the info. I did a comment for the issue.
Offline
Pages: 1
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 548.9 KiB (Peak: 549.74 KiB) ]