Skip to content

Commit

Permalink
Make applauncher wayland compatible #474
Browse files Browse the repository at this point in the history
  • Loading branch information
fossfreedom committed Jun 27, 2024
1 parent c040ec9 commit 7187a75
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions budgie-app-launcher/src/budgie-app-launcher/AppLauncherApplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
gi.require_version('Gtk', '3.0')
gi.require_version('GMenu', '3.0')
gi.require_version('Budgie', '1.0')
gi.require_version('Libxfce4windowing', '0.0')
from gi.repository import Budgie
from gi.repository import GMenu
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import Libxfce4windowing
from AppButton import AppButton
from PanelButton import PanelButton
from ArrowButton import ArrowButton
Expand Down Expand Up @@ -102,9 +104,15 @@ def buildIndicator(self):

def buildPopover(self):
self.popover = Budgie.Popover.new(self.indicatorBox)
self.popover.set_default_size(self.popoverWidth, self.popoverHeight)
self.popover.get_child().show_all()
self.show_all()
if Libxfce4windowing.windowing_get() == \
Libxfce4windowing.Windowing.WAYLAND:
self.popover.set_size_request(self.popoverWidth,
self.popoverHeight)
else:
self.popover.set_default_size(self.popoverWidth,
self.popoverHeight)
self.popover.get_child().show_all()
self.show_all()

def buildStack(self):
self.stack = Gtk.Stack()
Expand Down

0 comments on commit 7187a75

Please sign in to comment.