Replies: 1 comment
-
@RangerCD Please, could you provide an minimal example program, which can be compiled and toy with to debug your problem? Something like create-window example and you can add maximize/restore to some key press. And if we make it work (the go way, not using C/XLib), this example could be added to examples for future references. In meantime I would suggest to check it, how the XLib doest the maximization, I think (not really sure) it uses xcb under the hood and from that you can figure out how to do it using xgb, cause both use the same xproto function calls. If there is a bug in xgb, more faster to debug it is to have the same example done in raw xcb (not XLib), so we can see what is transferred to X server and debug (something like I did here). ps: maybe this xcb example in this issue helps. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to maximize a window with
xproto.SendEvent
, just like commandwmctrl -ir xxxxxx -b add,maximized_vert,maximized_horz
:I'm pretty sure
window
is the correct one, but nothing happened to that window, So I have to implement this with C:And it works just fine.
I've checked window event with
xprop -spy -id xxxxxx
, nothing comes in with golang version. But with C version, there is an event:So I think there must be something wrong with previous golang version.
I've tried both
SendEvent
andSendEventChecked
, withReply()
orCheck()
, still not working.But I couldn't find anything helpful on the Internet, any idea?
Beta Was this translation helpful? Give feedback.
All reactions