Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-28 01:05:45

xfce_user_2022
Member
Registered: 2022-01-28
Posts: 1

Disallow dragging of windows by the titlebar with right mouse button?

I would like to make it so that windows can be dragged by the titlebar only with left mouse button, but not with the right (currently they are draggable with both). Is there a way to achieve this?

Using xfce 4.16.

Last edited by xfce_user_2022 (2022-01-28 01:20:14)

Offline

#2 2022-01-28 02:24:49

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

Re: Disallow dragging of windows by the titlebar with right mouse button?

Hello and welcome.

Don't think that is possible - see: https://docs.xfce.org/xfce/xfwm4/gettin … ve_windows.


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-01-28 03:14:58

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: Disallow dragging of windows by the titlebar with right mouse button?

Yep. It's hard-coded.

    else if (event->button == Button3)
    {
        XfwmButtonClickType tclick;

        tclick = typeOfClick (screen_info, c->window, event, FALSE);
        if (tclick == XFWM_BUTTON_DRAG)
        {
            clientMove (c, event);
        }

If you click and drag with the right button, it will start moving the client window.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 524.46 KiB (Peak: 532.06 KiB) ]