mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
chore: explicitly handle _NET_WM_STATE_MAXIMIZED_HORZ in case the WM doesn't do it for us
This commit is contained in:
@ -633,6 +633,7 @@ fn gtkWindowNotifyMaximized(
|
|||||||
client_message_event.format = 32;
|
client_message_event.format = 32;
|
||||||
client_message_event.data.l[0] = c.gtk_window_is_maximized(window);
|
client_message_event.data.l[0] = c.gtk_window_is_maximized(window);
|
||||||
client_message_event.data.l[1] = @intCast(c.XInternAtom(xdisplay, "_NET_WM_STATE_MAXIMIZED_VERT", 0));
|
client_message_event.data.l[1] = @intCast(c.XInternAtom(xdisplay, "_NET_WM_STATE_MAXIMIZED_VERT", 0));
|
||||||
|
client_message_event.data.l[2] = @intCast(c.XInternAtom(xdisplay, "_NET_WM_STATE_MAXIMIZED_HORZ", 0));
|
||||||
|
|
||||||
// https://tronche.com/gui/x/xlib/event-handling/XSendEvent.html
|
// https://tronche.com/gui/x/xlib/event-handling/XSendEvent.html
|
||||||
_ = c.XSendEvent(
|
_ = c.XSendEvent(
|
||||||
|
Reference in New Issue
Block a user