[Pkg-xfce-commits] [Git][xfce-team/goodies/xfce4-whiskermenu-plugin][debian/master] 5 commits: New upstream version 2.9.2

Yves-Alexis Perez (@corsac) gitlab at salsa.debian.org
Fri Feb 21 13:44:19 GMT 2025



Yves-Alexis Perez pushed to branch debian/master at xfce / goodies / xfce4-whiskermenu-plugin


Commits:
f803bc3f by Yves-Alexis Perez at 2025-02-21T14:27:23+01:00
New upstream version 2.9.2
- - - - -
8a54d379 by Yves-Alexis Perez at 2025-02-21T14:27:24+01:00
Update upstream source from tag 'upstream/2.9.2'

Update to upstream version '2.9.2'
with Debian dir 1ac07fa953292ffb6d751d19fe10f5af4d8479fc
- - - - -
03c3700d by Yves-Alexis Perez at 2025-02-21T14:27:34+01:00
d/control: update standards version to 4.7.1.

- - - - -
2ed46126 by Yves-Alexis Perez at 2025-02-21T14:27:50+01:00
finalize changelog

- - - - -
91cfb074 by Yves-Alexis Perez at 2025-02-21T14:27:59+01:00
upload xfce4-whiskermenu-plugin 2.9.2-1 to unstable

- - - - -


6 changed files:

- CMakeLists.txt
- NEWS
- debian/changelog
- debian/control
- panel-plugin/plugin.cpp
- panel-plugin/window.cpp


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -4,7 +4,7 @@
 
 cmake_minimum_required(VERSION 3.16)
 
-project(whiskermenu VERSION 2.9.1)
+project(whiskermenu VERSION 2.9.2)
 
 # options
 string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_TOLOWER)


=====================================
NEWS
=====================================
@@ -1,3 +1,7 @@
+2.9.2
+=====
+- Fix menu not shown on correct monitor. (Issue #154)
+
 2.9.1
 =====
 - Fix menu position in Wayland with multiple monitors. (Issue #153)


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+xfce4-whiskermenu-plugin (2.9.2-1) unstable; urgency=medium
+
+  * New upstream version 2.9.2
+  * d/control: update standards version to 4.7.1.
+
+ -- Yves-Alexis Perez <corsac at debian.org>  Fri, 21 Feb 2025 14:27:55 +0100
+
 xfce4-whiskermenu-plugin (2.9.1-2) unstable; urgency=medium
 
   * New revision to restore proper changelog history in Debian.


=====================================
debian/control
=====================================
@@ -15,7 +15,7 @@ Build-Depends: cmake,
                libxfce4util-dev,
                pkgconf
 Rules-Requires-Root: no
-Standards-Version: 4.7.0
+Standards-Version: 4.7.1
 Homepage: https://docs.xfce.org/panel-plugins/xfce4-whiskermenu-plugin
 Vcs-Git: https://salsa.debian.org/xfce-team/goodies/xfce4-whiskermenu-plugin.git
 Vcs-Browser: https://salsa.debian.org/xfce-team/goodies/xfce4-whiskermenu-plugin


=====================================
panel-plugin/plugin.cpp
=====================================
@@ -230,7 +230,7 @@ std::string Plugin::get_button_title_default()
 
 void Plugin::get_menu_position(int* x, int* y) const
 {
-	xfce_panel_plugin_position_widget(m_plugin, m_window->get_widget(), get_button(), x, y);
+	xfce_panel_plugin_position_widget(m_plugin, m_window->get_widget(), m_button, x, y);
 }
 
 //-----------------------------------------------------------------------------


=====================================
panel-plugin/window.cpp
=====================================
@@ -524,6 +524,7 @@ void WhiskerMenu::Window::show(const Position position)
 	m_recent->get_view()->reload_icon_size();
 	m_applications->get_view()->reload_icon_size();
 
+	GdkMonitor* monitor_gdk = nullptr;
 	if (position == PositionAtButton)
 	{
 		// Wait up to half a second for auto-hidden panels to be shown
@@ -543,6 +544,7 @@ void WhiskerMenu::Window::show(const Position position)
 
 		// Fetch position
 		m_plugin->get_menu_position(&m_geometry.x, &m_geometry.y);
+		monitor_gdk = gdk_display_get_monitor_at_window(gtk_widget_get_display(parent), gtk_widget_get_window(parent));
 	}
 	else
 	{
@@ -551,10 +553,10 @@ void WhiskerMenu::Window::show(const Position position)
 		GdkSeat* seat = gdk_display_get_default_seat(display);
 		GdkDevice* device = gdk_seat_get_pointer(seat);
 		gdk_device_get_position(device, nullptr, &m_geometry.x, &m_geometry.y);
+		monitor_gdk = gdk_display_get_monitor_at_point(display, m_geometry.x, m_geometry.y);
 	}
 
 	// Resize window if necessary, and also prevent it from being larger than screen
-	GdkMonitor* monitor_gdk = gdk_display_get_monitor_at_point(gdk_display_get_default(), m_geometry.x, m_geometry.y);
 #ifdef HAVE_GTK_LAYER_SHELL
 	if (gtk_layer_is_supported())
 	{



View it on GitLab: https://salsa.debian.org/xfce-team/goodies/xfce4-whiskermenu-plugin/-/compare/cb6156923f2fed58d0b6896010c0788b2253425f...91cfb074abce48f32ed416c8af41780aaeffd091

-- 
View it on GitLab: https://salsa.debian.org/xfce-team/goodies/xfce4-whiskermenu-plugin/-/compare/cb6156923f2fed58d0b6896010c0788b2253425f...91cfb074abce48f32ed416c8af41780aaeffd091
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-xfce-commits/attachments/20250221/3c06fad4/attachment-0001.htm>


More information about the Pkg-xfce-commits mailing list