Changeset View
Changeset View
Standalone View
Standalone View
screenedge.h
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Line(s) | 218 | public: | |||
---|---|---|---|---|---|
307 | * @param reserve indicated weather desktop switching should be reserved or unreseved | 307 | * @param reserve indicated weather desktop switching should be reserved or unreseved | ||
308 | */ | 308 | */ | ||
309 | void reserveDesktopSwitching(bool isToReserve, Qt::Orientations o); | 309 | void reserveDesktopSwitching(bool isToReserve, Qt::Orientations o); | ||
310 | /** | 310 | /** | ||
311 | * Raise electric border windows to the real top of the screen. We only need | 311 | * Raise electric border windows to the real top of the screen. We only need | ||
312 | * to do this if an effect input window is active. | 312 | * to do this if an effect input window is active. | ||
313 | */ | 313 | */ | ||
314 | void ensureOnTop(); | 314 | void ensureOnTop(); | ||
315 | /** | | |||
316 | * Called when the user entered an electric border with the mouse. | | |||
317 | * It may switch to another virtual desktop. | | |||
318 | * @param e the X event which is passed to this method. | | |||
319 | */ | | |||
320 | bool isEntered(xcb_generic_event_t *e); | | |||
321 | bool isEntered(xcb_enter_notify_event_t *e); | | |||
322 | bool isEntered(xcb_client_message_event_t *e); | | |||
323 | bool isEntered(QMouseEvent *event); | 315 | bool isEntered(QMouseEvent *event); | ||
324 | 316 | | |||
325 | /** | 317 | /** | ||
326 | * Returns a QVector of all existing screen edge windows | 318 | * Returns a QVector of all existing screen edge windows | ||
327 | * @return all existing screen edge windows in a QVector | 319 | * @return all existing screen edge windows in a QVector | ||
328 | */ | 320 | */ | ||
329 | QVector< xcb_window_t > windows() const; | 321 | QVector< xcb_window_t > windows() const; | ||
330 | 322 | | |||
Show All 16 Lines | |||||
347 | ElectricBorderAction actionBottom() const; | 339 | ElectricBorderAction actionBottom() const; | ||
348 | ElectricBorderAction actionBottomLeft() const; | 340 | ElectricBorderAction actionBottomLeft() const; | ||
349 | ElectricBorderAction actionLeft() const; | 341 | ElectricBorderAction actionLeft() const; | ||
350 | 342 | | |||
351 | GestureRecognizer *gestureRecognizer() const { | 343 | GestureRecognizer *gestureRecognizer() const { | ||
352 | return m_gestureRecognizer; | 344 | return m_gestureRecognizer; | ||
353 | } | 345 | } | ||
354 | 346 | | |||
347 | bool handleDndNotify(xcb_window_t window, const QPoint &point); | ||||
348 | bool handleEnterNotifiy(xcb_window_t window, const QPoint &point, const QDateTime ×tamp); | ||||
349 | | ||||
355 | public Q_SLOTS: | 350 | public Q_SLOTS: | ||
356 | void reconfigure(); | 351 | void reconfigure(); | ||
357 | /** | 352 | /** | ||
358 | * Updates the layout of virtual desktops and adjust the reserved borders in case of | 353 | * Updates the layout of virtual desktops and adjust the reserved borders in case of | ||
359 | * virtual desktop switching on edges. | 354 | * virtual desktop switching on edges. | ||
360 | **/ | 355 | **/ | ||
361 | void updateLayout(); | 356 | void updateLayout(); | ||
362 | /** | 357 | /** | ||
Show All 19 Lines | 371 | private: | |||
382 | void setReActivationThreshold(int threshold); | 377 | void setReActivationThreshold(int threshold); | ||
383 | void createHorizontalEdge(ElectricBorder border, const QRect &screen, const QRect &fullArea); | 378 | void createHorizontalEdge(ElectricBorder border, const QRect &screen, const QRect &fullArea); | ||
384 | void createVerticalEdge(ElectricBorder border, const QRect &screen, const QRect &fullArea); | 379 | void createVerticalEdge(ElectricBorder border, const QRect &screen, const QRect &fullArea); | ||
385 | Edge *createEdge(ElectricBorder border, int x, int y, int width, int height, bool createAction = true); | 380 | Edge *createEdge(ElectricBorder border, int x, int y, int width, int height, bool createAction = true); | ||
386 | void setActionForBorder(ElectricBorder border, ElectricBorderAction *oldValue, ElectricBorderAction newValue); | 381 | void setActionForBorder(ElectricBorder border, ElectricBorderAction *oldValue, ElectricBorderAction newValue); | ||
387 | void setActionForTouchBorder(ElectricBorder border, ElectricBorderAction newValue); | 382 | void setActionForTouchBorder(ElectricBorder border, ElectricBorderAction newValue); | ||
388 | ElectricBorderAction actionForEdge(Edge *edge) const; | 383 | ElectricBorderAction actionForEdge(Edge *edge) const; | ||
389 | ElectricBorderAction actionForTouchEdge(Edge *edge) const; | 384 | ElectricBorderAction actionForTouchEdge(Edge *edge) const; | ||
390 | bool handleEnterNotifiy(xcb_window_t window, const QPoint &point, const QDateTime ×tamp); | | |||
391 | bool handleDndNotify(xcb_window_t window, const QPoint &point); | | |||
392 | void createEdgeForClient(AbstractClient *client, ElectricBorder border); | 385 | void createEdgeForClient(AbstractClient *client, ElectricBorder border); | ||
393 | void deleteEdgeForClient(AbstractClient *client); | 386 | void deleteEdgeForClient(AbstractClient *client); | ||
394 | bool m_desktopSwitching; | 387 | bool m_desktopSwitching; | ||
395 | bool m_desktopSwitchingMovingClients; | 388 | bool m_desktopSwitchingMovingClients; | ||
396 | QSize m_cursorPushBackDistance; | 389 | QSize m_cursorPushBackDistance; | ||
397 | int m_timeThreshold; | 390 | int m_timeThreshold; | ||
398 | int m_reactivateThreshold; | 391 | int m_reactivateThreshold; | ||
399 | Qt::Orientations m_virtualDesktopLayout; | 392 | Qt::Orientations m_virtualDesktopLayout; | ||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |