mirror of
https://github.com/gryf/tabbedalt.git
synced 2025-12-17 19:40:31 +01:00
Respect user provided position passed with -geometry param.
Original code had a function for copying height related parameters from WM_NORMAL_HINTS which was modified than by adding the height of tabs. Rest of the hints was simply removed. Using geometry command line parameter with urxvt and tabbedalt plugin results that provided window position was ignored. This patch is fixing that behaviour.
This commit is contained in:
@@ -267,7 +267,7 @@ sub copy_properties {
|
|||||||
if ($atom == $wm_normal_hints) {
|
if ($atom == $wm_normal_hints) {
|
||||||
my (@hints) = unpack "l!*", $items;
|
my (@hints) = unpack "l!*", $items;
|
||||||
|
|
||||||
$hints[$_] += $self->{tabheight} for (4, 6, 16);
|
$hints[$_] += $self->{tabheight} for (0, 1, 4, 6, 16);
|
||||||
|
|
||||||
$items = pack "l!*", @hints;
|
$items = pack "l!*", @hints;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user