Xfce Forum

Sub domains

You are not logged in.

#1 2019-12-02 02:24:00

Registered: 2019-12-02
Posts: 3

Disallow dragging of a maximised window

Hello, I am currently using Xubuntu and I'm pretty new in general to Linux. I'm loving the simplicity/speed of the XFCE desktop environment and ability to customize it to fit my needs. I almost have it working exactly like I want except for one little annoyance.

I noticed that if a window is maximized, you can still drag it. When I'm using Firefox for example and I'm jumping between tabs, sometimes I'll accidentally click the title bar and drag a few pixels which causes the entire window to go back to it's non maximized size. This is a bit of an annoyance.

Is there a setting that disallows dragging of maximized windows? I've tried googling an answer, but the only answers I get are about the way snapping works when dragging a window to the edge of the screen.

Thanks for the help!


#2 2019-12-02 02:55:42

From: Canada
Registered: 2011-06-02
Posts: 7,844

Re: Disallow dragging of a maximised window

Hello and welcome.

There is no way to prevent the dragging of a maximized window. That is a function of the titlebar of the window. However, you can hide the titlebar (and borders) when a window is mazimized, eliminating the accidental drag. To do so, have a look at the options at Settings Manager > Window Manager Tweaks > Accessibility tab.

Note: if you maximize a window with no titlebars present, you can Alt-F10 to un-maximize the window again to get the titlebars back.


#3 2019-12-02 09:17:33

Registered: 2019-12-02
Posts: 3

Re: Disallow dragging of a maximised window

I noticed and tried that setting, however for Firefox it has no effect since I have the native XFCE title bar disabled in it via it's Customize menu option. So the "tabs bar" is still draggable while maximized.


#4 2019-12-02 15:33:04

Registered: 2015-10-13
Posts: 156

Re: Disallow dragging of a maximised window

You would have to make an application with Xlib to check if the window in focus is fullsceen and then change MOTIF_WM_HINTS.
https://stackoverflow.com/questions/144 … 7#38175137



Edit: Maybe slightly off topic, to toggle window decorations I use this app:
https://gist.github.com/muktupavels/d03 … 4c87df975d
Works with xfce, just need to compile and pass Xwindow ID on launch.

toggle-decorations $XID

Like in one of my experiments with Yad and fake window bar.
I use it here to show and hide the real window bar on undecorated yad dialog.

@ToZ It will toggle window decorations even on xfce4-panel(s).
I've actually tried that. smile

Last edited by Misko_2083 (2019-12-03 12:29:37)


Board footer

Powered by FluxBB