]> git.mdlowis.com Git - proto/labwc.git/commit
src/xdg-popup.c: choose output depending on xdg-positioner
authortokyo4j <hrak1529@gmail.com>
Sat, 20 Jul 2024 17:33:51 +0000 (02:33 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 23 Jul 2024 12:53:33 +0000 (14:53 +0200)
commite15bde328dd77e86079fa66348d7d17ef31ba79a
treeef45d57753c88f8a24c2d6d8f63a04680a685bbf
parent1765bf8cc2adc8fb2218a02e01652d6659402ac1
src/xdg-popup.c: choose output depending on xdg-positioner

wlr_popup->current.geometry.{x,y} are usually zero on initial commit, so
xdg-popups were always unconstrained against the output which contains
the top-left of the parent toplevel.

This commit changes xdg-popups to be unconstrained against the output
which contains the top-left of preliminary popup geometry designated by
xdg-positioner given as an argument of "get_popup" or "reposition"
requests.
src/xdg-popup.c