Line Messager - remove shadows #2 / Linux

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
mjrec
Level 1
Level 1
Posts: 5
Joined: Sat Nov 23, 2024 10:34 am

Line Messager - remove shadows #2 / Linux

Post by mjrec »

Hi,

my previous thread:
viewtopic.php?t=39710

since I still have to use Line here the borders are getting annoying. Is there any preferred way of adding hints to wine that certain actions should not be performed?

Basically what I did now is to check if "line.exe" is creating some shadow windows with a pixel size of 11 and not map the windows.

in winex11.drv, window.c

Code: Select all

static void map_window( HWND hwnd, DWORD new_style )
{
    struct x11drv_win_data *data;
    int width, height;

    make_owner_managed( hwnd );
    wait_for_withdrawn_state( hwnd, TRUE );

    if (!(data = get_win_data( hwnd ))) return;
    
    width = data->whole_rect.right - data->whole_rect.left;
    height = data->whole_rect.bottom - data->whole_rect.top;

    if (strcmp(process_name, "line.exe")==0 && (width == 11 || height == 11)) {
        // don't map the window
        release_win_data( data );
        return;
    }
mjrec
Level 1
Level 1
Posts: 5
Joined: Sat Nov 23, 2024 10:34 am

Re: Line Messager - remove shadows #2 / Linux

Post by mjrec »

the same problem happens with Wayland however the first modification only addresses X11.
361e2888-a20e-41bb-888f-cab4f0804ad1.png
Post Reply