mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 07:52:42 +01:00 
			
		
		
		
	taskbar: implement drag-and-drop task reordering
This commit is contained in:
		| @@ -74,6 +74,10 @@ class Task { | ||||
|   std::string app_id_; | ||||
|   uint32_t state_ = 0; | ||||
|  | ||||
|   int32_t drag_start_x; | ||||
|   int32_t drag_start_y; | ||||
|   int32_t drag_start_button = -1; | ||||
|  | ||||
|  private: | ||||
|   std::string repr() const; | ||||
|   std::string state_string(bool = false) const; | ||||
| @@ -105,6 +109,11 @@ class Task { | ||||
|  | ||||
|   /* Callbacks for Gtk events */ | ||||
|   bool handle_clicked(GdkEventButton *); | ||||
|   bool handle_button_release(GdkEventButton *); | ||||
|   bool handle_motion_notify(GdkEventMotion *); | ||||
|   void handle_drag_data_get(const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection_data, guint info, guint time); | ||||
|   void handle_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, Gtk::SelectionData selection_data, guint info, guint time); | ||||
|  | ||||
|  | ||||
|  public: | ||||
|   bool operator==(const Task &) const; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bi4k8
					bi4k8