mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 19:56:53 +00:00
Some debugging code related to controlling position of new windows
This commit is contained in:
@@ -99,8 +99,12 @@ ensure_viewport = (meta_window) => {
|
||||
}
|
||||
}
|
||||
|
||||
framestr = (rect) => {
|
||||
return "[ x:"+rect.x + ", y:" + rect.y + " w:" + rect.width + " h:"+rect.height + " ]";
|
||||
}
|
||||
|
||||
focus_handler = (meta_window, user_data) => {
|
||||
log("focus", meta_window)
|
||||
log("focus", meta_window, framestr(meta_window.get_frame_rect()));
|
||||
|
||||
ensure_viewport(meta_window)
|
||||
meta_window.activate(timestamp())
|
||||
|
||||
Reference in New Issue
Block a user